How to compare two versions in Mercurial?

I need to know which files were added / changed / deleted between two versions. What am I doing:

hg status --rev 10:11 

Everything looks good. But when I have only one revision (initial = 0), it does not work.

 # not work hg status --rev 0:0 # also not work as I want hg status --rev 0 

No version -1 .

+4
source share
3 answers

A special null revision is used to indicate the parent of version 0. You can use

 hg status --rev null:0 

to see the changes in the first revision.

+9
source
 hg status --change [rev] 

t

 hg status --change 0 

and

 hg log -v 
+1
source

You can see the result of hg log -v . For each change set, it must indicate the files modified in this change set. If you have a specific set of changes, add the -r switch to specify it.

0
source

Source: https://habr.com/ru/post/1315031/


All Articles