diff mercurial/hg.py @ 15992:963c8a553524 stable

outgoing: display info about secret changets while no sharable changeset found
author Alain Leufroy <alain.leufroyATgmailMYDOTcom>
date Wed, 25 Jan 2012 19:41:34 +0100
parents 60cb4f381a78
children 0b05e0bfdc1c
line wrap: on
line diff
--- a/mercurial/hg.py	Wed Jan 25 19:05:16 2012 +0100
+++ b/mercurial/hg.py	Wed Jan 25 19:41:34 2012 +0100
@@ -511,7 +511,11 @@
                                             force=opts.get('force'))
     o = outgoing.missing
     if not o:
-        ui.status(_("no changes found\n"))
+        if outgoing.excluded:
+            repo.ui.status(_("no outgoing changes but %i secret changesets\n")
+                           % len(outgoing.excluded))
+        else:
+            ui.status(_("no changes found\n"))
         return None
     return o