hgext/evolve.py
changeset 1327 7821a00fb6de
parent 1326 ae678c98b685
child 1331 5e82d78f5872
--- a/hgext/evolve.py	Tue May 05 18:20:40 2015 -0700
+++ b/hgext/evolve.py	Tue May 05 14:09:09 2015 -0700
@@ -1168,7 +1168,9 @@
     finally:
         lockmod.release(tr, lock, wlock)
 
-def handlenotrouble(ui, repo, startnode, dryrunopt):
+def _handlenotrouble(ui, repo, startnode, dryrunopt):
+    """Used by the evolve function to display an error message when
+    no troubles can be resolved"""
     if repo['.'].obsolete():
         displayer = cmdutil.show_changeset(
             ui, repo, {'template': shorttemplate})
@@ -1308,7 +1310,7 @@
     nexttrouble = _picknexttroubled(ui, repo, anyopt or allopt)
     # No trouble to resolve
     if not nexttrouble:
-        return handlenotrouble(ui, repo, startnode, dryrunopt)
+        return _handlenotrouble(ui, repo, startnode, dryrunopt)
 
     if allopt:
         # Resolving all the troubles