# HG changeset patch # User Mathias De Maré # Date 2014-12-28 22:59:57 # Node ID dd1e73c4be136d4ed5541770653f85ce8cc0245e # Parent 194d2f1850086af043b89964bbe3a03dec73a5ee subrepo: add forgotten annotation for reverting git subrepos Support for reverting git subrepos was added earlier, but the annotation to handle any subrepo errors was forgotten. diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -1655,6 +1655,7 @@ class gitsubrepo(abstractsubrepo): 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'):