D6173: shelve: stop passing list of files to revert

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Fri Mar 29 21:49:45 EDT 2019


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

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()
 



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


More information about the Mercurial-devel mailing list