mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
0ca941a08a
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
20 lines
444 B
Perl
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
|