How to display status between changeset?

Thomas Arendsen Hein thomas at intevation.de
Thu May 11 12:03:58 CDT 2006


* Danek Duvall <danek.duvall at sun.com> [20060511 18:52]:
> On Thu, May 11, 2006 at 02:00:04PM +0100, Ivan Kanis wrote:
> > I am trying to display what files have been modified between tip and
> > the previous changeset. I was expecting the 'status' command to take a
> > revision argument but that's not the case. I looked at all the other
> > commands and couldn't find one that would do the job ('diff' is too
> > verbose). Have I missed something obvious?
> 
> Not that it's necessarily obvious, but
> 
>     hg log -v -r tip

or in short:
$ hg tip -v

> will do the trick.  Use --debug instead of -v if you want to know whether a
> file was added or removed or just changed.

$ hg tip --debug

For a little bit more verbose display or to display changes across serveral
versions you can use hg diff with diffstat:

$ hg diff -r rev1 -r rev2 | diffstat

which produces something like:

 b/tests/test-incoming-outgoing     |   46 ++++++
 b/tests/test-incoming-outgoing.out |  272 +++++++++++++++++++++++++++++++++++++
 mercurial/bundlerepo.py            |   11 -
 mercurial/localrepo.py             |    5
 mercurial/revlog.py                |   56 +++++--
 mercurial/util.py                  |    3
 tests/run-tests.py                 |   40 ++---
 7 files changed, 389 insertions(+), 44 deletions(-)

Or for a single changeset:

$ hg export 240 | diffstat
 README          |    4 ---
 a/tkmerge       |    2 -
 b/hgmerge       |   68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 mercurial/hg.py |    4 +--
 setup.py        |    2 -
 5 files changed, 71 insertions(+), 9 deletions(-)

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/


More information about the Mercurial mailing list