[petsc-dev] hg diff question

Satish Balay balay at mcs.anl.gov
Wed Mar 23 16:47:20 CDT 2011


On Wed, 23 Mar 2011, Matthew Knepley wrote:

> On Wed, Mar 23, 2011 at 3:21 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> 
> >
> >  hg diff src/makefile
> >
> >
> >   How come there isn't an option to have it show the most recent set of
> > changes? It seems I have to hunt down some "revision numbers" and type them
> > in the request to get any useful information? How about something like
> >
> >  hg diff --last src/makefile
> 
> 
> The closest I can find is
> 
>   hg diff -r-2 src/makefile
> 
> which diffs against the first revision before tip. However, if you pull a
> bunch of revisions, there
> is no guarantee that is right. You can generate this diff before the pull
> using 'hg incoming', but
> I can't yet find a command to give me the last thing pulled down.

hg diff by default does diff with working dir. What you want is:

hg diff -c tip
or
hg diff -c -2

The relative-rev numbering is based on full changeset numbering from
tip - and not selective-file-changeset nubmering - which is what Barry
wants.. I don't know if that exists..

Satish



More information about the petsc-dev mailing list