D5389: shelve: drop unnecessary backup of dirstate for phase-based case

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Thu Dec 6 07:09:06 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd7e44da4dc70: shelve: drop unnecessary backup of dirstate for phase-based case (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5389?vs=12729&id=12749

REVISION DETAIL
  https://phab.mercurial-scm.org/D5389

AFFECTED FILES
  hgext/shelve.py

CHANGE DETAILS

diff --git a/hgext/shelve.py b/hgext/shelve.py
--- a/hgext/shelve.py
+++ b/hgext/shelve.py
@@ -446,11 +446,8 @@
 
 def _finishshelve(repo):
     if phases.supportinternal(repo):
-        backupname = 'dirstate.shelve'
         tr = repo.currenttransaction()
-        repo.dirstate.savebackup(tr, backupname)
         tr.close()
-        repo.dirstate.restorebackup(None, backupname)
     else:
         _aborttransaction(repo)
 



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list