mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
47cc0ea0b8
Summary: There were some comments under my diff after landing. Included: * Old "Task ID" syntax * Removing the "T" prefix * Fixing the copypasted docstring Test Plan: tests Reviewers: #sourcecontrol, rmcelroy, ttung Reviewed By: rmcelroy Differential Revision: https://phabricator.fb.com/D2765417 Signature: t1:2765417:1450294877:4a50ecfdb1fb295ffaf01ecee6fe257b52e359bc
23 lines
513 B
Perl
23 lines
513 B
Perl
$ echo "[extensions]" >> $HGRCPATH
|
|
$ echo "gitlookup = $TESTDIR/../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 b > b
|
|
$ hg commit -Aqm "Differential Revision: https://phabricator.fb.com/D5678
|
|
> Tasks: 32, 44"
|
|
$ hg log --template "{phabdiff}: {tasks}\n"
|
|
D5678: 32 44
|
|
D1234: 2312
|