##// 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 def patch(self, repo, patchfile):
504 def patch(self, repo, patchfile):
505 '''Apply patchfile to the working directory.
505 '''Apply patchfile to the working directory.
506 patchfile: file name of patch'''
506 patchfile: name of patch file'''
507 files = {}
507 files = {}
508 try:
508 try:
509 fuzz = patch.patch(patchfile, self.ui, strip=1, cwd=repo.root,
509 fuzz = patch.patch(patchfile, self.ui, strip=1, cwd=repo.root,
@@ -2541,7 +2541,7 b' cmdtable = {'
2541 "^qimport":
2541 "^qimport":
2542 (qimport,
2542 (qimport,
2543 [('e', 'existing', None, _('import file in patch directory')),
2543 [('e', 'existing', None, _('import file in patch directory')),
2544 ('n', 'name', '', _('patch file name')),
2544 ('n', 'name', '', _('name of patch file')),
2545 ('f', 'force', None, _('overwrite existing files')),
2545 ('f', 'force', None, _('overwrite existing files')),
2546 ('r', 'rev', [], _('place existing revisions under mq control')),
2546 ('r', 'rev', [], _('place existing revisions under mq control')),
2547 ('g', 'git', None, _('use git extended diff format')),
2547 ('g', 'git', None, _('use git extended diff format')),
@@ -148,7 +148,7 b' def makepatch(ui, repo, patch, opts, _ch'
148 msg.attach(mail.mimeencode(ui, body, _charsets, opts.get('test')))
148 msg.attach(mail.mimeencode(ui, body, _charsets, opts.get('test')))
149 p = mail.mimetextpatch('\n'.join(patch), 'x-patch', opts.get('test'))
149 p = mail.mimetextpatch('\n'.join(patch), 'x-patch', opts.get('test'))
150 binnode = bin(node)
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 if not patchname:
152 if not patchname:
153 patchtags = [t for t in repo.nodetags(binnode)
153 patchtags = [t for t in repo.nodetags(binnode)
154 if t.endswith('.patch') or t.endswith('.diff')]
154 if t.endswith('.patch') or t.endswith('.diff')]
@@ -490,7 +490,7 b' cmdtable = {'
490 ('b', 'bundle', None,
490 ('b', 'bundle', None,
491 _('send changes not in target as a binary bundle')),
491 _('send changes not in target as a binary bundle')),
492 ('', 'bundlename', 'bundle',
492 ('', 'bundlename', 'bundle',
493 _('file name of the bundle attachment')),
493 _('name of the bundle attachment file')),
494 ('r', 'rev', [], _('a revision to send')),
494 ('r', 'rev', [], _('a revision to send')),
495 ('', 'force', None,
495 ('', 'force', None,
496 _('run even when remote repository is unrelated '
496 _('run even when remote repository is unrelated '
@@ -102,7 +102,7 b' cmdtable = {'
102 (purge,
102 (purge,
103 [('a', 'abort-on-err', None, _('abort if an error occurs')),
103 [('a', 'abort-on-err', None, _('abort if an error occurs')),
104 ('', 'all', None, _('purge ignored files too')),
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 ('0', 'print0', None, _('end filenames with NUL, for use with xargs'
106 ('0', 'print0', None, _('end filenames with NUL, for use with xargs'
107 ' (implies -p/--print)')),
107 ' (implies -p/--print)')),
108 ] + commands.walkopts,
108 ] + commands.walkopts,
@@ -217,7 +217,7 b' def make_filename(repo, pat, node,'
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,
@@ -1005,7 +1005,7 b' def walkchangerevs(ui, repo, pats, chang'
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
@@ -1096,7 +1096,7 b' def walkchangerevs(ui, repo, pats, chang'
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():
@@ -88,7 +88,7 b' def annotate(ui, repo, *pats, **opts):'
88 getdate = util.cachefunc(lambda x: datefunc(x[0].date()))
88 getdate = util.cachefunc(lambda x: datefunc(x[0].date()))
89
89
90 if not pats:
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 opmap = [('user', lambda x: ui.shortuser(x[0].user())),
93 opmap = [('user', lambda x: ui.shortuser(x[0].user())),
94 ('number', lambda x: str(x[0].rev())),
94 ('number', lambda x: str(x[0].rev())),
@@ -630,7 +630,7 b' def commit(ui, repo, *pats, **opts):'
630 will be committed.
630 will be committed.
631
631
632 If you are committing the result of a merge, do not provide any
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 If no commit message is specified, the configured editor is
635 If no commit message is specified, the configured editor is
636 started to prompt you for a message.
636 started to prompt you for a message.
@@ -1894,8 +1894,8 b' def log(ui, repo, *pats, **opts):'
1894 project.
1894 project.
1895
1895
1896 File history is shown without following rename or copy history of
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
1897 files. Use -f/--follow with a filename to follow history across
1898 renames and copies. --follow without a file name will only show
1898 renames and copies. --follow without a filename will only show
1899 ancestors or descendants of the starting revision. --follow-first
1899 ancestors or descendants of the starting revision. --follow-first
1900 only follows the first parent of merge revisions.
1900 only follows the first parent of merge revisions.
1901
1901
@@ -2151,7 +2151,7 b' def parents(ui, repo, file_=None, **opts'
2151 if file_:
2151 if file_:
2152 m = cmdutil.match(repo, (file_,), opts)
2152 m = cmdutil.match(repo, (file_,), opts)
2153 if m.anypats() or len(m.files()) != 1:
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 file_ = m.files()[0]
2155 file_ = m.files()[0]
2156 filenodes = []
2156 filenodes = []
2157 for cp in ctx.parents():
2157 for cp in ctx.parents():
@@ -71,7 +71,7 b' def staticfile(directory, fname, req):'
71 req.respond(HTTP_OK, ct, length = os.path.getsize(path))
71 req.respond(HTTP_OK, ct, length = os.path.getsize(path))
72 return file(path, 'rb').read()
72 return file(path, 'rb').read()
73 except TypeError:
73 except TypeError:
74 raise ErrorResponse(HTTP_SERVER_ERROR, 'illegal file name')
74 raise ErrorResponse(HTTP_SERVER_ERROR, 'illegal filename')
75 except OSError, err:
75 except OSError, err:
76 if err.errno == errno.ENOENT:
76 if err.errno == errno.ENOENT:
77 raise ErrorResponse(HTTP_NOT_FOUND)
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 # Copyright 2008, 2009 Matt Mackall <mpm@selenic.com> and others
3 # Copyright 2008, 2009 Matt Mackall <mpm@selenic.com> and others
4 #
4 #
@@ -1350,7 +1350,7 b' def diffstatdata(lines):'
1350 if line.startswith('diff --git'):
1350 if line.startswith('diff --git'):
1351 filename = gitre.search(line).group(1)
1351 filename = gitre.search(line).group(1)
1352 else:
1352 else:
1353 # format: "diff -r ... -r ... file name"
1353 # format: "diff -r ... -r ... filename"
1354 filename = line.split(None, 5)[-1]
1354 filename = line.split(None, 5)[-1]
1355 elif line.startswith('+') and not line.startswith('+++'):
1355 elif line.startswith('+') and not line.startswith('+++'):
1356 adds += 1
1356 adds += 1
@@ -46,7 +46,7 b' def user_rcpath():'
46 return [os.path.expanduser('~/.hgrc')]
46 return [os.path.expanduser('~/.hgrc')]
47
47
48 def parse_patch_output(output_line):
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 pf = output_line[14:]
50 pf = output_line[14:]
51 if os.sys.platform == 'OpenVMS':
51 if os.sys.platform == 'OpenVMS':
52 if pf[0] == '`':
52 if pf[0] == '`':
@@ -28,7 +28,7 b' class StreamException(Exception):'
28 #
28 #
29 # then for each file:
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 # file. separator is ascii nul, byte count is string.
32 # file. separator is ascii nul, byte count is string.
33 #
33 #
34 # server writes out raw file data.
34 # server writes out raw file data.
@@ -91,7 +91,7 b' def user_rcpath():'
91 return path
91 return path
92
92
93 def parse_patch_output(output_line):
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 pf = output_line[14:]
95 pf = output_line[14:]
96 if pf[0] == '`':
96 if pf[0] == '`':
97 pf = pf[1:-1] # Remove the quotes
97 pf = pf[1:-1] # Remove the quotes
@@ -53,7 +53,7 b' date: Thu Jan 01 00:00:01 1970 +0'
53 summary: a
53 summary: a
54
54
55 % hg parents -r 2 glob:a
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 % merge working dir with 2 parents, hg parents c
57 % merge working dir with 2 parents, hg parents c
58 merging c
58 merging c
59 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
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