##// END OF EJS Templates
Cleanup archive command: Don't overwrite gettext, quoting in cmd table entry.
Thomas Arendsen Hein -
r2160:858df1f3 default
parent child Browse files
Show More
@@ -931,7 +931,7 b' def archive(ui, repo, dest, **opts):'
931 prefix = make_filename(repo, repo.changelog, opts['prefix'], node)
931 prefix = make_filename(repo, repo.changelog, opts['prefix'], node)
932 if os.path.realpath(dest) == repo.root:
932 if os.path.realpath(dest) == repo.root:
933 raise util.Abort(_('repository root cannot be destination'))
933 raise util.Abort(_('repository root cannot be destination'))
934 _, matchfn, _ = matchpats(repo, [], opts)
934 dummy, matchfn, dummy = matchpats(repo, [], opts)
935 archival.archive(repo, dest, node, opts.get('type') or 'files',
935 archival.archive(repo, dest, node, opts.get('type') or 'files',
936 not opts['no_decode'], matchfn, prefix)
936 not opts['no_decode'], matchfn, prefix)
937
937
@@ -2931,7 +2931,7 b' table = {'
2931 ('I', 'include', [], _('include names matching the given patterns')),
2931 ('I', 'include', [], _('include names matching the given patterns')),
2932 ('X', 'exclude', [], _('exclude names matching the given patterns'))],
2932 ('X', 'exclude', [], _('exclude names matching the given patterns'))],
2933 _('hg annotate [-r REV] [-a] [-u] [-d] [-n] [-c] FILE...')),
2933 _('hg annotate [-r REV] [-a] [-u] [-d] [-n] [-c] FILE...')),
2934 'archive':
2934 "archive":
2935 (archive,
2935 (archive,
2936 [('', 'no-decode', None, _('do not pass files through decoders')),
2936 [('', 'no-decode', None, _('do not pass files through decoders')),
2937 ('p', 'prefix', '', _('directory prefix for files in archive')),
2937 ('p', 'prefix', '', _('directory prefix for files in archive')),
General Comments 0
You need to be logged in to leave comments. Login now