[PATCH 1 of 3] keyword: allow keyword expansion on clone

Matt Mackall mpm at selenic.com
Mon Feb 4 12:07:19 CST 2008


On Mon, 2008-02-04 at 18:58 +0100, Christian Ebert wrote:
> # 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:

Queued. Though I generally prefer "add addremove bundle...".split().

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list