diff -r bd56597b2254 -r 8c466bcb0879 mercurial/subrepo.py --- a/mercurial/subrepo.py Mon Aug 10 18:08:15 2020 -0700 +++ b/mercurial/subrepo.py Mon Aug 10 21:46:47 2020 -0700 @@ -986,12 +986,11 @@ def filerevert(self, *pats, **opts): ctx = self._repo[opts['rev']] - parents = self._repo.dirstate.parents() if opts.get('all'): pats = [b'set:modified()'] else: pats = [] - cmdutil.revert(self.ui, self._repo, ctx, parents, *pats, **opts) + cmdutil.revert(self.ui, self._repo, ctx, *pats, **opts) def shortid(self, revid): return revid[:12]