##// END OF EJS Templates
Generally replace "file name" with "filename" in help and comments.
timeless -
r8761:0289f384 default
parent child Browse files
Show More
@@ -503,7 +503,7 b' class queue:'
503 503
504 504 def patch(self, repo, patchfile):
505 505 '''Apply patchfile to the working directory.
506 patchfile: file name of patch'''
506 patchfile: name of patch file'''
507 507 files = {}
508 508 try:
509 509 fuzz = patch.patch(patchfile, self.ui, strip=1, cwd=repo.root,
@@ -2541,7 +2541,7 b' cmdtable = {'
2541 2541 "^qimport":
2542 2542 (qimport,
2543 2543 [('e', 'existing', None, _('import file in patch directory')),
2544 ('n', 'name', '', _('patch file name')),
2544 ('n', 'name', '', _('name of patch file')),
2545 2545 ('f', 'force', None, _('overwrite existing files')),
2546 2546 ('r', 'rev', [], _('place existing revisions under mq control')),
2547 2547 ('g', 'git', None, _('use git extended diff format')),
@@ -148,7 +148,7 b' def makepatch(ui, repo, patch, opts, _ch'
148 148 msg.attach(mail.mimeencode(ui, body, _charsets, opts.get('test')))
149 149 p = mail.mimetextpatch('\n'.join(patch), 'x-patch', opts.get('test'))
150 150 binnode = bin(node)
151 # if node is mq patch, it will have patch file name as tag
151 # if node is mq patch, it will have the patch file's name as a tag
152 152 if not patchname:
153 153 patchtags = [t for t in repo.nodetags(binnode)
154 154 if t.endswith('.patch') or t.endswith('.diff')]
@@ -490,7 +490,7 b' cmdtable = {'
490 490 ('b', 'bundle', None,
491 491 _('send changes not in target as a binary bundle')),
492 492 ('', 'bundlename', 'bundle',
493 _('file name of the bundle attachment')),
493 _('name of the bundle attachment file')),
494 494 ('r', 'rev', [], _('a revision to send')),
495 495 ('', 'force', None,
496 496 _('run even when remote repository is unrelated '
@@ -102,7 +102,7 b' cmdtable = {'
102 102 (purge,
103 103 [('a', 'abort-on-err', None, _('abort if an error occurs')),
104 104 ('', 'all', None, _('purge ignored files too')),
105 ('p', 'print', None, _('print the file names instead of deleting them')),
105 ('p', 'print', None, _('print filenames instead of deleting them')),
106 106 ('0', 'print0', None, _('end filenames with NUL, for use with xargs'
107 107 ' (implies -p/--print)')),
108 108 ] + commands.walkopts,
@@ -217,7 +217,7 b' def make_filename(repo, pat, node,'
217 217 i += 1
218 218 return ''.join(newname)
219 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 221 inst.args[0])
222 222
223 223 def make_file(repo, pat, node=None,
@@ -1005,7 +1005,7 b' def walkchangerevs(ui, repo, pats, chang'
1005 1005 positive if walking forwards through revs, last rev in the
1006 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 1009 fns, which changed during revision rev - use to gather data for
1010 1010 possible display
1011 1011
@@ -1096,7 +1096,7 b' def walkchangerevs(ui, repo, pats, chang'
1096 1096 if slowpath:
1097 1097 if follow:
1098 1098 raise util.Abort(_('can only follow copies/renames for explicit '
1099 'file names'))
1099 'filenames'))
1100 1100
1101 1101 # The slow path checks files modified in every changeset.
1102 1102 def changerevgen():
@@ -88,7 +88,7 b' def annotate(ui, repo, *pats, **opts):'
88 88 getdate = util.cachefunc(lambda x: datefunc(x[0].date()))
89 89
90 90 if not pats:
91 raise util.Abort(_('at least one file name or pattern required'))
91 raise util.Abort(_('at least one filename or pattern is required'))
92 92
93 93 opmap = [('user', lambda x: ui.shortuser(x[0].user())),
94 94 ('number', lambda x: str(x[0].rev())),
@@ -630,7 +630,7 b' def commit(ui, repo, *pats, **opts):'
630 630 will be committed.
631 631
632 632 If you are committing the result of a merge, do not provide any
633 file names or -I/-X filters.
633 filenames or -I/-X filters.
634 634
635 635 If no commit message is specified, the configured editor is
636 636 started to prompt you for a message.
@@ -1894,8 +1894,8 b' def log(ui, repo, *pats, **opts):'
1894 1894 project.
1895 1895
1896 1896 File history is shown without following rename or copy history of
1897 files. Use -f/--follow with a file name to follow history across
1898 renames and copies. --follow without a file name will only show
1897 files. Use -f/--follow with a filename to follow history across
1898 renames and copies. --follow without a filename will only show
1899 1899 ancestors or descendants of the starting revision. --follow-first
1900 1900 only follows the first parent of merge revisions.
1901 1901
@@ -2151,7 +2151,7 b' def parents(ui, repo, file_=None, **opts'
2151 2151 if file_:
2152 2152 m = cmdutil.match(repo, (file_,), opts)
2153 2153 if m.anypats() or len(m.files()) != 1:
2154 raise util.Abort(_('can only specify an explicit file name'))
2154 raise util.Abort(_('can only specify an explicit filename'))
2155 2155 file_ = m.files()[0]
2156 2156 filenodes = []
2157 2157 for cp in ctx.parents():
@@ -71,7 +71,7 b' def staticfile(directory, fname, req):'
71 71 req.respond(HTTP_OK, ct, length = os.path.getsize(path))
72 72 return file(path, 'rb').read()
73 73 except TypeError:
74 raise ErrorResponse(HTTP_SERVER_ERROR, 'illegal file name')
74 raise ErrorResponse(HTTP_SERVER_ERROR, 'illegal filename')
75 75 except OSError, err:
76 76 if err.errno == errno.ENOENT:
77 77 raise ErrorResponse(HTTP_NOT_FOUND)
@@ -1,4 +1,4 b''
1 # match.py - file name matching
1 # match.py - filename matching
2 2 #
3 3 # Copyright 2008, 2009 Matt Mackall <mpm@selenic.com> and others
4 4 #
@@ -1350,7 +1350,7 b' def diffstatdata(lines):'
1350 1350 if line.startswith('diff --git'):
1351 1351 filename = gitre.search(line).group(1)
1352 1352 else:
1353 # format: "diff -r ... -r ... file name"
1353 # format: "diff -r ... -r ... filename"
1354 1354 filename = line.split(None, 5)[-1]
1355 1355 elif line.startswith('+') and not line.startswith('+++'):
1356 1356 adds += 1
@@ -46,7 +46,7 b' def user_rcpath():'
46 46 return [os.path.expanduser('~/.hgrc')]
47 47
48 48 def parse_patch_output(output_line):
49 """parses the output produced by patch and returns the file name"""
49 """parses the output produced by patch and returns the filename"""
50 50 pf = output_line[14:]
51 51 if os.sys.platform == 'OpenVMS':
52 52 if pf[0] == '`':
@@ -28,7 +28,7 b' class StreamException(Exception):'
28 28 #
29 29 # then for each file:
30 30 #
31 # server writes out line that says file name, how many bytes in
31 # server writes out line that says filename, how many bytes in
32 32 # file. separator is ascii nul, byte count is string.
33 33 #
34 34 # server writes out raw file data.
@@ -91,7 +91,7 b' def user_rcpath():'
91 91 return path
92 92
93 93 def parse_patch_output(output_line):
94 """parses the output produced by patch and returns the file name"""
94 """parses the output produced by patch and returns the filename"""
95 95 pf = output_line[14:]
96 96 if pf[0] == '`':
97 97 pf = pf[1:-1] # Remove the quotes
@@ -53,7 +53,7 b' date: Thu Jan 01 00:00:01 1970 +0'
53 53 summary: a
54 54
55 55 % hg parents -r 2 glob:a
56 abort: can only specify an explicit file name
56 abort: can only specify an explicit filename
57 57 % merge working dir with 2 parents, hg parents c
58 58 merging c
59 59 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
General Comments 0
You need to be logged in to leave comments. Login now