mercurial/subrepo.py
changeset 18943 27e8dfc2c338
parent 18940 798bdb7f1517
child 18964 ca480d710fe6
--- 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 = []