Patchwork D5457: shelve: drop unnecessary backup of narrowspec

login
register
mail settings
Submitter phabricator
Date Dec. 20, 2018, 12:02 p.m.
Message ID <36271966702dc4a42c2aa007cbebe3d7@localhost.localdomain>
Download mbox | patch
Permalink /patch/37267/
State Not Applicable
Headers show

Comments

phabricator - Dec. 20, 2018, 12:02 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe5d37558098a: shelve: drop unnecessary backup of narrowspec (authored by martinvonz, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D5457?vs=12905&id=12917#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5457?vs=12905&id=12917

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

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
@@ -41,7 +41,6 @@ 
     lock as lockmod,
     mdiff,
     merge,
-    narrowspec,
     node as nodemod,
     patch,
     phases,
@@ -327,11 +326,8 @@ 
     '''Abort current transaction for shelve/unshelve, but keep dirstate
     '''
     dirstatebackupname = 'dirstate.shelve'
-    narrowspecbackupname = 'narrowspec.shelve'
     repo.dirstate.savebackup(tr, dirstatebackupname)
-    narrowspec.savebackup(repo, narrowspecbackupname)
     tr.abort()
-    narrowspec.restorebackup(repo, narrowspecbackupname)
     repo.dirstate.restorebackup(None, dirstatebackupname)
 
 def getshelvename(repo, parent, opts):