[PATCH 0 or 1] Fix handling non-root pattern matching in .hgignore files

Thomas Arendsen Hein thomas at intevation.de
Thu Dec 15 16:50:27 UTC 2005


* Benoit Boissinot <bboissin at gmail.com> [20051103 08:11]:
> # HG changeset patch
> # User Benoit Boissinot <benoit.boissinot at ens-lyon.org>
> # Node ID 5336c2fa7b32074d4774d6c804178f8f46c08d76
> # Parent  625f3f13d7be071ae7b59a03fa533870318d039b
> fix the handling of patterns in .hgignore
> 
> this breaks the setup of people who assumed the glob are
> non-rooted, usually the fix is simply to use '**' instead
> of '*' or specifying the 'rel' version (ie use 'relre'
> instead of 're' and 'relglob' instead of 'glob').
> 
> diff -r 625f3f13d7be -r 5336c2fa7b32 .hgignore
> --- a/.hgignore	Mon Oct 31 10:47:27 2005 -0800
> +++ b/.hgignore	Thu Nov  3 08:04:21 2005 +0100
> @@ -1,13 +1,13 @@
>  syntax: glob
>  
> -*.elc
> -*.orig
> -*.rej
> -*~
> -*.so
> -*.pyc
> -*.swp
> -*.prof
> +**.elc
> +**.orig
> +**.rej
> +**~
> +**.so
> +**.pyc
> +**.swp
> +**.prof

I really hoped the .hgignore file could behave like .cvsignore by
default in the future, so "*.elc" would be the same as "/**.elc",
maybe unless one uses something like "syntax: absolute glob".

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/



More information about the Mercurial mailing list