mercurial/scmutil.py
branchstable
changeset 15993 0b05e0bfdc1c
parent 15797 c7a8164c61ab
child 16068 73aaff46175b
--- a/mercurial/scmutil.py	Wed Jan 25 19:41:34 2012 +0100
+++ b/mercurial/scmutil.py	Wed Jan 25 17:14:08 2012 -0600
@@ -10,6 +10,14 @@
 import match as matchmod
 import os, errno, re, stat, sys, glob
 
+def nochangesfound(ui, secretlist=None):
+    '''report no changes for push/pull'''
+    if secretlist:
+        ui.status(_("no changes found (ignored %d secret changesets)\n")
+                  % len(secretlist))
+    else:
+        ui.status(_("no changes found\n"))
+
 def checkfilename(f):
     '''Check that the filename f is an acceptable filename for a tracked file'''
     if '\r' in f or '\n' in f: