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.
--- 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