strip: backup bundles should use the .hg extension
authorMatt Mackall <mpm@selenic.com>
Thu, 10 Jun 2010 15:23:31 -0500
changeset 11333 e83aff248c17
parent 11332 716e176a4e01
child 11334 5bf465160632
strip: backup bundles should use the .hg extension
mercurial/repair.py
--- a/mercurial/repair.py	Wed Jun 09 12:41:44 2010 -1000
+++ b/mercurial/repair.py	Thu Jun 10 15:23:31 2010 -0500
@@ -17,7 +17,7 @@
     backupdir = repo.join("strip-backup")
     if not os.path.isdir(backupdir):
         os.mkdir(backupdir)
-    name = os.path.join(backupdir, "%s-%s" % (short(node), suffix))
+    name = os.path.join(backupdir, "%s-%s.hg" % (short(node), suffix))
     return changegroup.writebundle(cg, name, "HG10BZ")
 
 def _collectfiles(repo, striprev):