--- 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"""