hg rm behavior

Eric Bloodworth ergosys at gmail.com
Thu Sep 29 02:43:56 CDT 2005


Mercurial seems to temporarily lose track of the fact that a file was
just removed if you recreate the file before the removal is checked-in. 
Is this behavior correct?
 
Here is an example:

eric2 at thud:~$ touch foobar
eric2 at thud:~$ hg add foobar
eric2 at thud:~$ hg ci -m"bletch" foobar
eric2 at thud:~$ hg status
eric2 at thud:~$ hg rm foobar
eric2 at thud:~$ ls -l foobar
ls: foobar: No such file or directory
eric2 at thud:~$ hg status
R foobar
eric2 at thud:~$ touch foobar
eric2 at thud:~$ hg status           
? foobar
eric2 at thud:~$ hg ci
nothing changed
eric2 at thud:~$ rm foobar
eric2 at thud:~$ hg status
R foobar
eric2 at thud:~$


-- Eric




More information about the Mercurial mailing list