hgext/shelve.py
changeset 33440 ec306bc6915b
parent 33313 ea03b3223611
child 34097 f7d41b85bbf6
--- a/hgext/shelve.py	Thu Jul 13 09:51:50 2017 -0700
+++ b/hgext/shelve.py	Wed Jul 12 15:24:07 2017 -0700
@@ -297,9 +297,10 @@
     '''Abort current transaction for shelve/unshelve, but keep dirstate
     '''
     tr = repo.currenttransaction()
-    repo.dirstate.savebackup(tr, suffix='.shelve')
+    backupname = 'dirstate.shelve'
+    repo.dirstate.savebackup(tr, backupname)
     tr.abort()
-    repo.dirstate.restorebackup(None, suffix='.shelve')
+    repo.dirstate.restorebackup(None, backupname)
 
 def createcmd(ui, repo, pats, opts):
     """subcommand that creates a new shelve"""