diff mercurial/changegroup.py @ 3932:e0793314360e

writebundle: overwrite existing bundle file
author Matt Mackall <mpm@selenic.com>
date Tue, 19 Dec 2006 08:59:41 -0600
parents 6b4127c7d52a
children 61462e7d62ed
line wrap: on
line diff
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -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")