[PATCH 1 of 3] keyword: allow keyword expansion on clone
Christian Ebert
blacktrash at gmx.net
Mon Feb 4 11:58:08 CST 2008
# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1202146056 -3600
# Node ID bec20c63736f34cfd8c30cd2e0954ef175e323c3
# Parent 288ec2f6faa2a362dafa8da81bd03d96e36be5ee
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
@@ -410,10 +410,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