writebundle: overwrite existing bundle file

This commit is contained in:
Matt Mackall 2006-12-19 08:59:41 -06:00
parent 2be2df78fe
commit 7bd6a2278b

View File

@ -67,8 +67,6 @@ def writebundle(cg, filename, bundletype):
cleanup = None
try:
if filename:
if os.path.exists(filename):
raise util.Abort(_("file '%s' already exists") % filename)
fh = open(filename, "wb")
else:
fd, filename = tempfile.mkstemp(prefix="hg-bundle-", suffix=".hg")