List of changed files during pull

Matt Mackall mpm at selenic.com
Wed Apr 11 09:55:47 CDT 2007


On Wed, Apr 11, 2007 at 03:11:51PM +0200, Konrad Hinsen wrote:
> I am looking for a way to obtain the list of all files that have been  
> modified after doing "hg pull -u". Normally, Mercurial just tells me  
> how many files were changed, but not which ones. Is there a simpler  
> way than noting the tip changeset before the pull, pulling, and  
> listing all the changesets that have been added one by one?
> 
> Konrad.

Yes:

$ hg pull -uv ../hg
pulling from ../hg
searching for changes
304 changesets found
adding changesets
adding manifests
adding file changes
added 304 changesets with 613 changes to 140 files
resolving manifests
getting Makefile
getting README
...
removing tests/test-branch
removing tests/test-branch.out
getting tests/test-bundle
...
135 files updated, 1 files merged, 6 files removed, 0 files unresolved

Or:

$ hg pull ../hg
pulling from ../hg
searching for changes
adding changesets
adding manifests
adding file changes
added 304 changesets with 613 changes to 140 files
(run 'hg update' to get a working copy)

$ hg diff -r tip | diffstat
 tests/test-static-http.out         |    2
 tests/test-symlinks                |   15 -
 tests/test-symlinks.out            |    9
 tests/test-transplant              |   29 --
 tests/test-transplant.out          |   18 -
 tests/test-ui-config               |   19 -
 tests/test-ui-config.out           |    2
 tests/test-walk                    |  113 ++------
 tests/test-walk.out                |  213 ---------------
 142 files changed, 2741 insertions(+), 3901 deletions(-)

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list