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

Evan Powers evan.powers at gmail.com
Mon Jul 16 09:44:02 CDT 2007


On 7/14/07, Yakov Lerner <iler.ml at gmail.com> wrote:
> The strange part is that my .hgignore [1] does not have ".tmp_versions".
> But has "tmp_versions". Why the ".tmp_versions" was ignored ?

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. Right now you have to use a rooted regexp to avoid
that behavior, in your case:

syntax: regexp
^tmp_versions

- Evan


More information about the Mercurial mailing list