"tmp_versions" vs ".tmp_versions" (.hgignore)

David Frey dpfrey at shaw.ca
Mon Jul 16 10:39:45 CDT 2007


I don't believe that Evan has shown the same behavior.  Evan, you
redirect output to your .hgignore, so the only content of that file is
"tmp_versions".  Alexis' example shows "syntax: glob" at the top of
the file.  Since the default is regexp syntax, you are comparing two
different things.

David

On 7/16/2007, "Evan Powers" <evan.powers+hg at gmail.com> wrote:

>On 7/15/07, Alexis S. L. Carvalho <alexis at cecm.usp.br> wrote:
>> I can't reproduce this (nor can I reproduce your problem with
>> .tmp_versions).
>
>Maybe it's a Windows related problem, as I can easily reproduce with
>0.9.4 on windows. I thought it was normal behavior on all platforms
>though (matches aren't rooted). Am I mistaken? Yakov, did I
>misunderstand your problem?
>
>$ hg init
>$ touch .tmp_versions
>$ touch tmp_versions
>$ hg status -A
>? .tmp_versions
>? tmp_versions
>$ echo tmp_versions >.hgignore
>$ hg status -A
>? .hgignore
>I .tmp_versions
>I tmp_versions
>
>- Evan
>
>On 7/16/07, I wrote:
>> Because neither glob nor regexp expression matches are "rooted"; in
>> other words "a" in glob syntax will match files "a", "ba", even "c/a",
>> but not "ad". The man page mentions this if you read carefully, but
>> it's easy to miss.
>_______________________________________________
>Mercurial mailing list
>Mercurial at selenic.com
>http://selenic.com/mailman/listinfo/mercurial



More information about the Mercurial mailing list