subrepo: drop unused pattern initialization in hgsubrepo revert
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 08 Feb 2015 00:56:40 -0500
changeset 24135 27b6d41aa029
parent 24134 afed5d2e7985
child 24136 46d6cdfce4bf
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.
mercurial/subrepo.py
--- 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