status -X

Thomas Maier-Komor thomas at maier-komor.de
Wed Jul 15 06:19:27 CDT 2009


Hello everybody,

I have a small problem concerning exclude lists: When I am in
subdirectory of a hg managed directory hierarchy glob extensions don't
seem to work:

thomas at opensolaris:~/test/a/x> hg status
? a
? a.bak
? x/b
? x/b.bak
thomas at opensolaris:~/test/a/x> hg status -X '*.bak'
? a
? a.bak
? x/b
thomas at opensolaris:~/test/a/x> hg status -X '**.bak'
? a
? a.bak
? x/b
thomas at opensolaris:~/test/a/x> hg root
/home/thomas/test/a


As you can see I am one level below the top level, and the exclude for
extension .bak only works in the current directory, but not in the
parent directory.

In hg root everything seems to work fine:

thomas at opensolaris:~/test/a> hg status -X '*.bak'
? a
? x/b
? x/b.bak
thomas at opensolaris:~/test/a> hg status -X '**.bak'
? a
? x/b


This is with version 1.1.2 (above code snipped), but also with 1.3.

What am I doing wrong?

TIA,
Thomas



More information about the Mercurial mailing list