sapling/tests/test-commitextras.t
Laurent Charignon 0ca941a08a cleanup: use backtick instead of parent to capture output of shell cmd
Summary: This diff is part of a series to cleanup fb-hgext and make it pass check-code.

Test Plan: all tests pass

Reviewers: #sourcecontrol, ttung, mitrandir, akushner

Reviewed By: akushner

Subscribers: mpm, akushner, mitrandir

Differential Revision: https://phabricator.fb.com/D2811997

Signature: t1:2811997:1452200059:9e4fca501a22f95d2d9a22d234758f55e292ea9a
2016-01-07 18:30:24 -08:00

20 lines
444 B
Perl

$ 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