hg purge purges files in .ignore
Alexis S. L. Carvalho
alexis at cecm.usp.br
Mon Jun 4 21:53:27 UTC 2007
Thus spake solo turn:
> on windows "hg purge" purges files which are in .hgignore. this is
> very inconsistent and unexpected. as the name "hgignore" says, these
> files should (must) be ignored by hg. and purge belongs to hg.
I guess this depends on why you added the file to .hgignore - files
autogenerated by the build system (*.o) are probably more than ok to
purge, but if you're versioning parts of your $HOME and told hg to
ignore the rest, things could get really ugly...
We should add some options to purge to remove only
unknown/ignored/directories. Not sure what the default should be (we
already have a --print as a "don't do anything flag").
> also strange:
> hg revert does not read the default section in .hgrc for looking up
> the --no-backup parameter. it creates backups in any case.
(Note: [defaults], not [default])
What .hgrc? The [defaults] section only has an effect when it's in a
global hgrc file - by the time we read .hg/hgrc the contents of the
[defaults] section were already used.
Alexis
More information about the Mercurial
mailing list