sapling/tests/test-commitextras.t

20 lines
444 B
Perl
Raw Normal View History

$ extpath=`dirname $TESTDIR`
$ cp $extpath/commitextras.py $TESTTMP # use $TESTTMP substitution in message
$ cat >> $HGRCPATH << EOF
> [extensions]
> commitextras=$TESTTMP/commitextras.py
> EOF
Test stuff
$ hg init repo
$ cd repo
$ touch a
$ hg commit -Aqm a
$ echo a > a
$ hg commit -qm a2 --extra oldhash=foo --extra source=bar
$ hg log -r . -T '{extras % "{extra}\n"}'
branch=default
oldhash=foo
source=bar