diff -r 194d2f185008 -r dd1e73c4be13 mercurial/subrepo.py --- a/mercurial/subrepo.py Sun Dec 28 10:42:25 2014 +0100 +++ b/mercurial/subrepo.py Sun Dec 28 23:59:57 2014 +0100 @@ -1655,6 +1655,7 @@ elif match(gitprefix): #Subrepo is matched ui.write(self._gitcommand(cmd)) + @annotatesubrepoerror def revert(self, substate, *pats, **opts): self.ui.status(_('reverting subrepo %s\n') % substate[0]) if not opts.get('no_backup'):