# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 2018-01-14 17:05:28 # Node ID 73f51bdb0feaa82c0f085c15d9f90aa898a27714 # Parent 821d8a5ab4ff890a7732c2e4cdcc7f32191e5942 svnsubrepo: decorate dirty method with annotatesubrepoerror This function invokes svn commands which can error out in any number of ways, so it's helpful to know in which subrepo this error happens. diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -1327,6 +1327,7 @@ class svnsubrepo(abstractsubrepo): return True, True, bool(missing) return bool(changes), False, bool(missing) + @annotatesubrepoerror def dirty(self, ignoreupdate=False, missing=False): wcchanged = self._wcchanged() changed = wcchanged[0] or (missing and wcchanged[2])