[petsc-dev] hg diff question

Satish Balay balay at mcs.anl.gov
Wed Mar 23 17:20:38 CDT 2011


On Wed, 23 Mar 2011, Satish Balay wrote:

> 
> Well this is what I have:
> 
> function  bsmithdiff {
> hg diff -c `hg log -l 1 --template '{node}' $1`
> }
> 
> bsmithdiff src/makefile

This one [bash function] is slightly better

function  bsmithdiff {
  hg diff -c `hg log -l $1 --template '{node}\n' $2| tail -1` $2
}

bsmithdiff 1 src/makefile
bsmithdiff 2 src/makefile

satish



More information about the petsc-dev mailing list