how to see files in repository before running '

2020-07-09 07:45发布

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?

3条回答
倾城 Initia
2楼-- · 2020-07-09 08:11

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.

查看更多
家丑人穷心不美
3楼-- · 2020-07-09 08:14

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

查看更多
Emotional °昔
4楼-- · 2020-07-09 08:18

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.

查看更多
登录 后发表回答