Cleanup archive command: Don't overwrite gettext, quoting in cmd table entry.
authorThomas Arendsen Hein <thomas@intevation.de>
Sun, 30 Apr 2006 18:46:49 +0200
changeset 2160 858df1f354c1
parent 2159 5c34b98ad6b1
child 2161 12e11413ca19
Cleanup archive command: Don't overwrite gettext, quoting in cmd table entry.
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')),