svnsubrepo: decorate dirty method with annotatesubrepoerror
authorJordi Gutiérrez Hermoso <jordigh@octave.org>
Sun, 14 Jan 2018 12:05:28 -0500
changeset 35660 73f51bdb0fea
parent 35659 821d8a5ab4ff
child 35661 1c0ee0befba0
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.
mercurial/subrepo.py
--- a/mercurial/subrepo.py	Tue Jan 16 22:14:33 2018 +0900
+++ b/mercurial/subrepo.py	Sun Jan 14 12:05:28 2018 -0500
@@ -1327,6 +1327,7 @@
                     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])