What pattern to exclude *any* directory called "bin"
Bill Barry
after.fallout at gmail.com
Fri Oct 3 08:33:31 CDT 2008
You could add all of that to a file called .hgignore in the root of your
repository, you also don't need to ignore .hg (though I have seen the
case made for ignoring .hg* to ignore the tags and hgignore file in
queue repositories)
I am ignoring the same files with this .hgignore file:
--
syntax: glob
bin
obj
build
_UpgradeReport_Files
*.msi
syntax:regexp
[Uu][Pp][Gg][Rr][Aa][Dd][Ee][Ll][Oo][Gg]\.[Xx][Mm][Ll]
--
The regex is done because I need to ignore case (sometimes it comes out
in a different case on a couple machines, I haven't figured out why).
There is probably a better way to ignore case (some sort of case ignore
group, in perl it would be (?i:upgradelog\.xml) but I don't know if that
works in python and I haven't bothered to check).
joel miranda wrote:
> Hi,
>
> I'm using the Mercurial command-line to commit my workspace. Right
> now, my mercurial_commit.bat is like this :
>
> hg addremove -X path:/bin -X path:obj -X path:build -X
> _UpgradeReport_Files -X UpgradeLog.XML -X path:.hg -X **.msi
> hg commit
> pause
>
> but I doesn't do what I want. I want it to exclude any folder or
> subfolder called exactly "bin" or "obj" or "build" or
> "_UpgradeReport_Files", and any file called exactly "UpgradeLog.XML".
> But I can't get my patterns right.
>
> What are the correct patterns for what I want ?
>
> --
> "Computer Science is no more about computers than astronomy is about
> telescopes." - Edsger Dijkstra
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20081003/0665e487/attachment.htm
More information about the Mercurial
mailing list