mercurial/subrepo.py
changeset 30755 0fbb3a5c188e
parent 30639 d524c88511a7
child 31099 b44ab288358e
child 31516 2915cc1d3429
--- a/mercurial/subrepo.py	Mon Jan 09 16:02:56 2017 +0900
+++ b/mercurial/subrepo.py	Tue Jan 10 09:32:27 2017 +0100
@@ -464,12 +464,12 @@
             return _("uncommitted changes in subrepository '%s'"
                      ) % subrelpath(self)
 
-    def bailifchanged(self, ignoreupdate=False):
+    def bailifchanged(self, ignoreupdate=False, hint=None):
         """raise Abort if subrepository is ``dirty()``
         """
         dirtyreason = self.dirtyreason(ignoreupdate=ignoreupdate)
         if dirtyreason:
-            raise error.Abort(dirtyreason)
+            raise error.Abort(dirtyreason, hint=hint)
 
     def basestate(self):
         """current working directory base state, disregarding .hgsubstate