how to ignore subdirectory
Hiroshi SAKURAI
an.olive.tree at gmail.com
Thu Jul 19 00:05:58 CDT 2007
Hi,
I'm using mercurial 0.9.3 on NetBSD-4.
I have two directories,
~/pkgsrc/
~/pkgsrc-local-patch/
and I want to ignore only files in pkgsrc/ directory.
I added those lines to .hgignore.
syntax: regexp
^pkgsrc/
I expect hg to ignore only pkgsrc/ but hg ignores
pkgsrc-local-patch/ too.
It seems that trailing slash is removed and
"^pkgsrc/" is treated as "^pkgsrc"
Trailing slash is removed in canonpath() in util.py:
# name is "/home/sakurai/relre:^pkgsrc/" here
os.path.normpath(name)
# name is changed to "/home/sakurai/relre:^pkgsrc"
Is this behavior intentional or a bug?
thanks.
--
Hiroshi SAKURAI
More information about the Mercurial
mailing list