# HG changeset patch # User Thomas Arendsen Hein # Date 1146415609 -7200 # Node ID 858df1f354c11def7c699b7eee4f52dcb85656c5 # Parent 5c34b98ad6b1e691051af63fcfbd7f9c7e410403 Cleanup archive command: Don't overwrite gettext, quoting in cmd table entry. diff -r 5c34b98ad6b1 -r 858df1f354c1 mercurial/commands.py --- a/mercurial/commands.py Sun Apr 30 18:40:30 2006 +0200 +++ b/mercurial/commands.py Sun Apr 30 18:46:49 2006 +0200 @@ -931,7 +931,7 @@ prefix = make_filename(repo, repo.changelog, opts['prefix'], node) if os.path.realpath(dest) == repo.root: raise util.Abort(_('repository root cannot be destination')) - _, matchfn, _ = matchpats(repo, [], opts) + dummy, matchfn, dummy = matchpats(repo, [], opts) archival.archive(repo, dest, node, opts.get('type') or 'files', not opts['no_decode'], matchfn, prefix) @@ -2931,7 +2931,7 @@ ('I', 'include', [], _('include names matching the given patterns')), ('X', 'exclude', [], _('exclude names matching the given patterns'))], _('hg annotate [-r REV] [-a] [-u] [-d] [-n] [-c] FILE...')), - 'archive': + "archive": (archive, [('', 'no-decode', None, _('do not pass files through decoders')), ('p', 'prefix', '', _('directory prefix for files in archive')),