8

I run hg pull which added new changes to my repository. Before updating my working directory with the new changes i would like to see these new files/changes. I believe in SVN i used svn st -u but how is it done in Mercurial?

Martin Geisler
  • 72,968
  • 25
  • 171
  • 229
latvian
  • 3,161
  • 9
  • 33
  • 62

3 Answers3

15

Before you even pull you can use:

hg incoming --stat

to see a summary of changes or

hg incoming --patch

to see the actual deltas.

After pulling (but before updating!) you can do:

hg status --rev tip

to see a list of the changed files, or

hg diff --rev tip

to see a summary of the changes, or

hg diff -r tip

to see the combined diff.

wim
  • 338,267
  • 99
  • 616
  • 750
Ry4an Brase
  • 78,112
  • 7
  • 148
  • 169
  • Thank you Ry4an...your answer was what i was asking but Michael answered it first,so i am giving Michael...thank though...from your answer i learnt a lot – latvian Nov 29 '10 at 18:18
5

(After pulling the changes via hg pull) you can run hg status --rev tip to show an output similar to svn st -u.

Michael
  • 8,920
  • 3
  • 38
  • 56
0

There is also hg incoming (alias hg in; additionally hg outgoing/hg out) which can be used before pulling which will show you the revisions which will be pulled. At times this can be useful.

Chris Morgan
  • 86,207
  • 24
  • 208
  • 215