Patchwork D6173: shelve: stop passing list of files to revert

login
register
mail settings
Submitter phabricator
Date March 30, 2019, 1:49 a.m.
Message ID <a8acc143d7108c145e819cc73a6da0ec@localhost.localdomain>
Download mbox | patch
Permalink /patch/39415/
State Not Applicable
Headers show

Comments

phabricator - March 30, 2019, 1:49 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4606585549b1: shelve: stop passing list of files to revert (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6173?vs=14604&id=14607

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

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
@@ -646,10 +646,6 @@ 
         raise error.Abort(_('working directory parents do not match unshelve '
                            'state'))
 
-def pathtofiles(repo, files):
-    cwd = repo.getcwd()
-    return [repo.pathto(f, cwd) for f in files]
-
 def unshelveabort(ui, repo, state, opts):
     """subcommand that abort an in-progress unshelve"""
     with repo.lock():
@@ -689,7 +685,6 @@ 
                             scmutil.backuppath(ui, repo, file))
         ui.pushbuffer(True)
         cmdutil.revert(ui, repo, shelvectx, repo.dirstate.parents(),
-                       *pathtofiles(repo, files),
                        **{r'no_backup': True})
         ui.popbuffer()