Mercurial: How can I see in advance what changes will an `hg up` do to my working directory?

3

I'm regularly updating a production server which is running from an hg working directory. I always update to a merged/resolved changeset after testing that changeset in the development server, but want an extra layer of safety to see, before updating, which changes will be made (a diff so to speak between the current state of the files and the tip).

Any ideas?

GJ.

Posted 2011-02-02T20:16:59.690

Reputation: 8 151

Answers

4

You can simply run a diff vs. the tip like so:

hg diff -r tip

GJ.

Posted 2011-02-02T20:16:59.690

Reputation: 8 151