changeset 11333:e83aff248c17

strip: backup bundles should use the .hg extension
author Matt Mackall <mpm@selenic.com>
date Thu, 10 Jun 2010 15:23:31 -0500
parents 716e176a4e01
children 5bf465160632
files mercurial/repair.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):