hg status and intermediate file changes

Steve Losh steve at stevelosh.com
Thu Feb 24 08:57:50 CST 2011


On 02/24/11 at 11:18P, Jason Harris wrote:
> If I run:
> 
> hg init bob
> cd bob
> echo one > theFile
> hg commit -A -m "initial"
> echo two > theFile
> hg commit -m "secondary"
> echo one > theFile
> hg commit -m "change back"
> hg status --rev 0:2
> 
> this yields the result
> 
> M theFile
> 

I'd consider this a bug because of the following lines in 'hg help status':

    Note:
       status may appear to disagree with diff if permissions have changed or a merge has
       occurred. The standard diff format does not report permission changes and diff only reports
       changes relative to one merge parent.

In this case, status disagrees with diff but no permissions have changed and no
merge has occurred.

Either the behaviour of status needs to change or the help text needs to be
updated.

-- 
Steve Losh


More information about the Mercurial-devel mailing list