mercurial/localrepo.py
branchstable
changeset 15993 0b05e0bfdc1c
parent 15988 827e0126738d
child 16018 ed9f40bc346f
--- a/mercurial/localrepo.py	Wed Jan 25 19:41:34 2012 +0100
+++ b/mercurial/localrepo.py	Wed Jan 25 17:14:08 2012 -0600
@@ -1629,11 +1629,7 @@
 
                 if not outgoing.missing:
                     # nothing to push
-                    if outgoing.excluded:
-                        msg = "no changes to push but %i secret changesets\n"
-                        self.ui.status(_(msg) % len(outgoing.excluded))
-                    else:
-                        self.ui.status(_("no changes found\n"))
+                    scmutil.nochangesfound(self.ui, outgoing.excluded)
                     ret = 1
                 else:
                     # something to push