Bug in Mercurial?

Brendan Cully brendan at kublai.com
Wed Dec 23 12:33:04 CST 2009


On Wednesday, 23 December 2009 at 19:21, Octavian Râşniţă wrote:
> Hi,
> 
> Today I've seen that Mercurial ignores some files from a program I
> made and I don't know if I am missing something or it has a bug.
> 
> I use to commit the changes using:
> 
> hg commit -A
> 
> Should this command add all the newly created files in the
> repository, even if they were not added before?
> 
> I also use to check if there are any uncommited changes using:
> 
> hg status
> 
> Well, I have used hg status for more times, with no results displayed
> so I thought that all the changes were commited.
> 
> After this step, I have pushed the changes to a central server as
> before, using:
> 
> hg push ssh://hg@my-site.ro:16007/hg/ProjectName
> 
> And then from that repository I cloned it with
> 
> hg clone
> 
> But 3 files were missing.
> 
> I have checked again my computer with hg status, but no uncommited
> changes were reported.
> 
> Then I added the files manually, using
> 
> hg add path/to/the/file
> 
> This command didn't tell me that those files were already added.
> After I added them this way, I was able to commit them, but I am not
> sure anymore that Mercurial is working correctly.

Most likely the missing files are being deliberately ignored due to a
pattern in .hgignore. If so, hg status --ignored would show them.


More information about the Mercurial mailing list