changeset 23679:dd1e73c4be13

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.
author Mathias De Maré <mathias.demare@gmail.com>
date Sun, 28 Dec 2014 23:59:57 +0100
parents 194d2f185008
children 4075f2f8ea53
files mercurial/subrepo.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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'):