comparison mercurial/cmdutil.py @ 8761:0289f384e1e5

Generally replace "file name" with "filename" in help and comments.
author timeless <timeless@gmail.com>
date Tue, 09 Jun 2009 09:25:17 -0400
parents f037187a6f68
children c5f36402daad
comparison
equal deleted inserted replaced
8760:bf17aeafb869 8761:0289f384e1e5
215 c = expander[c]() 215 c = expander[c]()
216 newname.append(c) 216 newname.append(c)
217 i += 1 217 i += 1
218 return ''.join(newname) 218 return ''.join(newname)
219 except KeyError, inst: 219 except KeyError, inst:
220 raise util.Abort(_("invalid format spec '%%%s' in output file name") % 220 raise util.Abort(_("invalid format spec '%%%s' in output filename") %
221 inst.args[0]) 221 inst.args[0])
222 222
223 def make_file(repo, pat, node=None, 223 def make_file(repo, pat, node=None,
224 total=None, seqno=None, revwidth=None, mode='wb', pathname=None): 224 total=None, seqno=None, revwidth=None, mode='wb', pathname=None):
225 225
1003 1003
1004 "window", incrementing, lastrev: stepping through a window, 1004 "window", incrementing, lastrev: stepping through a window,
1005 positive if walking forwards through revs, last rev in the 1005 positive if walking forwards through revs, last rev in the
1006 sequence iterated over - use to reset state for the current window 1006 sequence iterated over - use to reset state for the current window
1007 1007
1008 "add", rev, fns: out-of-order traversal of the given file names 1008 "add", rev, fns: out-of-order traversal of the given filenames
1009 fns, which changed during revision rev - use to gather data for 1009 fns, which changed during revision rev - use to gather data for
1010 possible display 1010 possible display
1011 1011
1012 "iter", rev, None: in-order traversal of the revs earlier iterated 1012 "iter", rev, None: in-order traversal of the revs earlier iterated
1013 over with "add" - use to display data''' 1013 over with "add" - use to display data'''
1094 if follow and copied: 1094 if follow and copied:
1095 copies.append(copied) 1095 copies.append(copied)
1096 if slowpath: 1096 if slowpath:
1097 if follow: 1097 if follow:
1098 raise util.Abort(_('can only follow copies/renames for explicit ' 1098 raise util.Abort(_('can only follow copies/renames for explicit '
1099 'file names')) 1099 'filenames'))
1100 1100
1101 # The slow path checks files modified in every changeset. 1101 # The slow path checks files modified in every changeset.
1102 def changerevgen(): 1102 def changerevgen():
1103 for i, window in increasing_windows(len(repo) - 1, nullrev): 1103 for i, window in increasing_windows(len(repo) - 1, nullrev):
1104 for j in xrange(i - window, i + 1): 1104 for j in xrange(i - window, i + 1):