diff -r 6891e361bec6 -r 27e8dfc2c338 mercurial/subrepo.py --- a/mercurial/subrepo.py Sun Apr 14 19:05:19 2013 -0500 +++ b/mercurial/subrepo.py Mon Apr 15 23:52:57 2013 +0900 @@ -764,7 +764,7 @@ opts['rev'] = substate[1] pats = [] - if not opts['all']: + if not opts.get('all'): pats = ['set:modified()'] self.filerevert(ui, *pats, **opts) @@ -774,7 +774,7 @@ def filerevert(self, ui, *pats, **opts): ctx = self._repo[opts['rev']] parents = self._repo.dirstate.parents() - if opts['all']: + if opts.get('all'): pats = ['set:modified()'] else: pats = []