[PATCH] subrepo: add forgotten annotation for reverting git subrepos
Mathias De Maré
mathias.demare at gmail.com
Sun Dec 28 23:11:17 UTC 2014
# HG changeset patch
# User Mathias De Maré <mathias.demare at gmail.com>
# Date 1419807597 -3600
# Son Dez 28 23:59:57 2014 +0100
# Node ID 8aaed90f35751d1c4c605fb7b074d6b9f0f96d3a
# Parent 092bb321b2adc00ef207ffb15fcd7446203806e9
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'):
More information about the Mercurial-devel
mailing list