# HG changeset patch # User Matt Harbison # Date 1423375000 18000 # Node ID 27b6d41aa029ef5151a6322b0ffc280b44827979 # Parent afed5d2e79854419516e915309556ff84eec0652 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. diff -r afed5d2e7985 -r 27b6d41aa029 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