mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
9b5499d572
Summary: Allow for any number of spaces after the colon Test Plan: arc unit Reviewers: #sourcecontrol Subscribers: markisaa Differential Revision: https://phabricator.intern.facebook.com/D4179619 Tasks: 14532985
29 lines
724 B
Perl
29 lines
724 B
Perl
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
|
$ echo "[extensions]" >> $HGRCPATH
|
|
$ echo "gitlookup = $TESTDIR/../hgext3rd/phabdiff.py" >> $HGRCPATH
|
|
|
|
Setup repo
|
|
|
|
$ hg init repo
|
|
$ cd repo
|
|
|
|
Test phabdiff template mapping
|
|
|
|
$ echo a > a
|
|
$ hg commit -Aqm "Differential Revision: https://phabricator.fb.com/D1234
|
|
> Task ID: 2312"
|
|
$ hg log --template "{phabdiff}\n"
|
|
D1234
|
|
|
|
$ echo c > c
|
|
$ hg commit -Aqm "Differential Revision: http://phabricator.intern.facebook.com/D1245
|
|
> Task ID: 2312"
|
|
$ hg log -r . --template "{phabdiff}\n"
|
|
D1245
|
|
|
|
$ echo b > b
|
|
$ hg commit -Aqm "Differential Revision: https://phabricator.fb.com/D5678
|
|
> Tasks:32, 44"
|
|
$ hg log -r . --template "{phabdiff}: {tasks}\n"
|
|
D5678: 32 44
|