comparison mercurial/scmutil.py @ 15993:0b05e0bfdc1c stable

scmutil: unify some 'no changes found' messages This keeps the wording more consistent for secret csets
author Matt Mackall <mpm@selenic.com>
date Wed, 25 Jan 2012 17:14:08 -0600
parents c7a8164c61ab
children 73aaff46175b
comparison
equal deleted inserted replaced
15992:963c8a553524 15993:0b05e0bfdc1c
7 7
8 from i18n import _ 8 from i18n import _
9 import util, error, osutil, revset, similar, encoding 9 import util, error, osutil, revset, similar, encoding
10 import match as matchmod 10 import match as matchmod
11 import os, errno, re, stat, sys, glob 11 import os, errno, re, stat, sys, glob
12
13 def nochangesfound(ui, secretlist=None):
14 '''report no changes for push/pull'''
15 if secretlist:
16 ui.status(_("no changes found (ignored %d secret changesets)\n")
17 % len(secretlist))
18 else:
19 ui.status(_("no changes found\n"))
12 20
13 def checkfilename(f): 21 def checkfilename(f):
14 '''Check that the filename f is an acceptable filename for a tracked file''' 22 '''Check that the filename f is an acceptable filename for a tracked file'''
15 if '\r' in f or '\n' in f: 23 if '\r' in f or '\n' in f:
16 raise util.Abort(_("'\\n' and '\\r' disallowed in filenames: %r") % f) 24 raise util.Abort(_("'\\n' and '\\r' disallowed in filenames: %r") % f)