how to ignore subdirectory

Masklinn masklinn at masklinn.net
Thu Jul 19 05:37:31 CDT 2007


On 19 Jul 2007, at 07:55 , Hiroshi SAKURAI wrote:
> On 7/19/07, Bela Babik <teki321 at gmail.com> wrote:
>> ^pkgsrc/.*
>>
>
> thanks for your reply.
>
> ^pkgsrc/.* works, but I cannot read that
> ^pkgsrc/ does not work from reading hgignore(5).
>
> I think it would be better hg accept ^pkgsrc/.

What's the problem with "^pkgsrc/.*"?

it clearly says "ignore every file into the folder "pkgsrc"


On 19 Jul 2007, at 10:16 , Christian Ebert wrote:

> * Hiroshi SAKURAI on Thursday, July 19, 2007 at 14:55:25 +0900
>> On 7/19/07, Bela Babik <teki321 at gmail.com> wrote:
>>> ^pkgsrc/.*
>>
>> thanks for your reply.
>>
>> ^pkgsrc/.* works, but I cannot read that
>> ^pkgsrc/ does not work from reading hgignore(5).
>>
>> I think it would be better hg accept ^pkgsrc/.
>
> syntax: glob
> pkgsrc/
>
> works here.
>
> But now I am confused, because
>
> syntax: glob
> ^pkgsrc/
>
> does not. hgignore(5) says:
>
> |Neither glob nor regexp patterns are rooted. [...] To root a
> |regexp pattern, start it with "^".
>
> ?

last time I checked, there was no "^" metacharacter in glob syntax.  
Thus, you can't root glob pattern, only regexp patterns (which is  
what hgignore says))




More information about the Mercurial mailing list