mercurial/commands.py
branchstable
changeset 15991 85ec8036d0b9
parent 15985 740b1b4c7958
child 15993 0b05e0bfdc1c
--- a/mercurial/commands.py	Mon Jan 23 12:26:01 2012 -0600
+++ b/mercurial/commands.py	Wed Jan 25 19:05:16 2012 +0100
@@ -994,7 +994,11 @@
                                                 force=opts.get('force'))
         cg = repo.getlocalbundle('bundle', outgoing)
     if not cg:
-        ui.status(_("no changes found\n"))
+        if 'outgoing' in locals() and outgoing.excluded:
+            repo.ui.status(_("no changes found but %i secret changesets\n")
+                           % len(outgoing.excluded))
+        else:
+            ui.status(_("no changes found\n"))
         return 1
 
     bundletype = opts.get('type', 'bzip2').lower()