mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
writebundle: overwrite existing bundle file
This commit is contained in:
parent
2be2df78fe
commit
7bd6a2278b
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user