[PATCH] keyword: allow keyword expansion on clone

Christian Ebert blacktrash at gmx.net
Sun Jan 27 04:31:31 CST 2008


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1201429816 0
# Node ID 98ae2599dcf1a4e986292b7c30eab34efcdbcc8d
# Parent  ed4d55c2366f1bd5fbb6b7ce39dff7fe959802b7
keyword: allow keyword expansion on clone

If [keyword] filename patterns are specified in a global hgrc
keywords will be expanded in clone.

This behaviour is more consistent but also more dangerous.
Specifying global, and thus more complicted, [keyword] patterns
might slow things down as well.
Mention this in help?

diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -409,10 +409,9 @@
     if not repo.local():
         return
 
-    nokwcommands = ('add', 'addremove', 'bundle', 'clone', 'copy',
-                    'export', 'grep', 'identify', 'incoming', 'init',
-                    'log', 'outgoing', 'push', 'remove', 'rename',
-                    'rollback', 'tip',
+    nokwcommands = ('add', 'addremove', 'bundle', 'copy', 'export', 'grep',
+                    'identify', 'incoming', 'init', 'log', 'outgoing', 'push',
+                    'remove', 'rename', 'rollback', 'tip',
                     'convert')
     hgcmd, func, args, opts, cmdopts = dispatch._parse(ui, sys.argv[1:])
     if hgcmd in nokwcommands:



More information about the Mercurial-devel mailing list