doubts on revert, status and diff

Alessandro Dentella sandro at e-den.it
Fri Feb 1 11:57:12 CST 2008


Hi all, I'm using hg to keep trace of modification in some conf file, I see
modifications that are just on dates (I guess) that I can't hide as I'd like
(suggestions are wellcome).

in the following anyhow I'd expect revert to work but it does no do what I'd
expect...

www:/etc/postfix# hg st --rev 1 .
M header_checks
M main.cf
M master.cf
M relay_domains.db
www:/etc/postfix# hg diff -r 1 
www:/etc/postfix# 

this means no diffs are between rev N. 1 and working dir
I deduce that the 'M' status above is not in data, just in dates: correct?


www:/etc/postfix# hg revert -r 1 header_checks
www:/etc/postfix# hg st .
www:/etc/postfix# hg st --rev 1 .
M header_checks
M main.cf
M master.cf
M relay_domains.db

I thought revert would make the version of header_check equal to the rev
n. 1... shoudn't it?

TIA
sandro
*:-)


More information about the Mercurial mailing list