changeset 24135:27b6d41aa029

subrepo: drop unused pattern initialization in hgsubrepo revert This passed an empty list to filerevert() if '--all' was specified, otherwise the set of modified files. But then filerevert() immediately switched this and reinitialized 'pats' to an empty list if '--all' was *not* specified.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 08 Feb 2015 00:56:40 -0500
parents afed5d2e7985
children 46d6cdfce4bf
files mercurial/subrepo.py
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/subrepo.py	Sat Feb 07 21:47:28 2015 -0500
+++ b/mercurial/subrepo.py	Sun Feb 08 00:56:40 2015 -0500
@@ -878,9 +878,6 @@
             opts['date'] = None
             opts['rev'] = substate[1]
 
-            pats = []
-            if not opts.get('all'):
-                pats = ['set:modified()']
             self.filerevert(*pats, **opts)
 
         # Update the repo to the revision specified in the given substate