Mercurial: information about modified files

Before pulling from the central repository, I usually use the "hg incoming" command to see what I will pull. However, this gives me a list of change sets with some comments, not a list of actual files that have been changed.

1) In such a situation, how can I get a list of modified files (including some basic information about chane, such as Removed, Moved, etc.)?

2) Similarly, when I execute the β€œhg status”, I get the differences between my local working copy and what is currently in the repository. However, a more useful feature would be to get the differences between incoming and local working copies. How can i get this?

Thank!

+3
source share
2 answers

If you do not have enough of the latest version for --stat, you can get a similar review using status:

cd repo

// grab the newest changes into a bundle
hg incoming --bundle morechanges.bun

// get an id for the current tip
hg tip
  changeset: x:abcdef
  ...

// see what changed by overlaying the bundle on the repo
hg -R morechanges.bun status --rev abcdef:tip
  //info you're looking for

// everything good; add the bundle to the repo
hg pull morechanges.bun

rm morechanges.bun
+1
source

1 / Most of the options are presented in how to see files in the repository before running "update" :

hg incoming --stat

Notes:

  • For a remote repository, use --bundleavoids loading change sets twice if pull is the next step.
  • --stat: Display a summary of the diffstat style changes.
    (i.e. statistics of changes in the following format: "modified files: + added / -realized lines")

2/. RDiff ( SO Mercurial, ")

+3

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


All Articles