help showing ignored files with 'set:'

Kevin Bullock kbullock+mercurial at ringworld.org
Sun Jul 1 20:11:38 UTC 2012


On 1 Jul 2012, at 4:00 AM, Adrian Buehlmann wrote:

> On 2012-07-01 06:46, Kevin Bullock wrote:
>> Ignored files are by definition not under Mercurial control.
> 
> I think that claim is wrong.

Let me put it this way: 'ignored()' files are, by definition, not under Mercurial control. And that fileset was precisely what the original question was about.

Corollary: 'hgignore()'d files may or may not be under Mercurial control.

> Mercurial disregards .hgignore for all filenames X (and thus any rules
> it may contain about X), if X is explicitly added with hg add, or has
> already been added, or even been added and committed. If such a X has
> been added (and committed), it's then under Mercurial control and
> Mercurial will then pick up all changes to X on further commits.
> 
> In other words, an ignored X can be under Mercurial control. Or every X
> under Mercurial control is not ignored by definition.


Well, if it's been `hg add`ed, then it's not ignored anymore, is it—regardless of what .hgignore says?

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20120701/3ac9dbe6/attachment-0002.html>


More information about the Mercurial mailing list