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

login
register
mail settings
Submitter phabricator
Date Dec. 6, 2018, 12:09 p.m.
Message ID <43ab9374cc97cd7800ca45f6088ee912@localhost.localdomain>
Download mbox | patch
Permalink /patch/37017/
State Not Applicable
Headers show

Comments

phabricator - Dec. 6, 2018, 12:09 p.m.
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




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

Patch

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)