writebundle: overwrite existing bundle file
authorMatt Mackall <mpm@selenic.com>
Tue, 19 Dec 2006 08:59:41 -0600
changeset 3932 e0793314360e
parent 3931 f2cbcf1e98b2
child 3933 7997c0e01bfc
child 3936 ea238a4e9e8b
writebundle: overwrite existing bundle file
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Tue Dec 19 08:58:56 2006 -0600
+++ b/mercurial/changegroup.py	Tue Dec 19 08:59:41 2006 -0600
@@ -67,8 +67,6 @@
     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")