2016-04-27 19:50:13 +03:00
|
|
|
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
2014-10-17 04:43:58 +04:00
|
|
|
$ echo "[extensions]" >> $HGRCPATH
|
2016-07-08 15:15:42 +03:00
|
|
|
$ echo "gitlookup = $TESTDIR/../hgext3rd/phabdiff.py" >> $HGRCPATH
|
2014-10-17 04:43:58 +04:00
|
|
|
|
|
|
|
Setup repo
|
|
|
|
|
|
|
|
$ hg init repo
|
|
|
|
$ cd repo
|
|
|
|
|
|
|
|
Test phabdiff template mapping
|
|
|
|
|
|
|
|
$ echo a > a
|
2015-12-14 22:20:43 +03:00
|
|
|
$ hg commit -Aqm "Differential Revision: https://phabricator.fb.com/D1234
|
2015-12-17 02:53:53 +03:00
|
|
|
> Task ID: 2312"
|
2014-10-17 04:43:58 +04:00
|
|
|
$ hg log --template "{phabdiff}\n"
|
|
|
|
D1234
|
|
|
|
|
phabdiff: make phabdiff more URL-agnostic
Summary: We want out phabricator diff parsers to recognize both https://phabricator.intern.facebook.com/ and https://phabricator.fb.com/ URLs (and a bigger class as well).
Test Plan:
- updated some tests (for `phabdiff` and `pullcreatemarkers` other files don't even seem to be used)
- ran tests
- tested phabdiff manually as well:
{F60696023}
Reviewers: #sourcecontrol, andersonmat, mitrandir, simpkins, lcharignon, quark, ttung, ikostia, rmcelroy
Reviewed By: ikostia, rmcelroy
Subscribers: wez, rmcelroy, net-systems-diffs@, mjpieters
Differential Revision: https://phabricator.intern.facebook.com/D3229776
Tasks: 11013909, 11017978
Signature: t1:3229776:1461839346:08b9b3414e43ff9966bc05591ca5662ef9691aac
2016-04-28 20:55:06 +03:00
|
|
|
$ echo c > c
|
|
|
|
$ hg commit -Aqm "Differential Revision: http://phabricator.intern.facebook.com/D1245
|
|
|
|
> Task ID: 2312"
|
|
|
|
$ hg log -r . --template "{phabdiff}\n"
|
|
|
|
D1245
|
|
|
|
|
2014-10-17 04:43:58 +04:00
|
|
|
$ echo b > b
|
2015-12-14 22:20:43 +03:00
|
|
|
$ hg commit -Aqm "Differential Revision: https://phabricator.fb.com/D5678
|
|
|
|
> Tasks: 32, 44"
|
phabdiff: make phabdiff more URL-agnostic
Summary: We want out phabricator diff parsers to recognize both https://phabricator.intern.facebook.com/ and https://phabricator.fb.com/ URLs (and a bigger class as well).
Test Plan:
- updated some tests (for `phabdiff` and `pullcreatemarkers` other files don't even seem to be used)
- ran tests
- tested phabdiff manually as well:
{F60696023}
Reviewers: #sourcecontrol, andersonmat, mitrandir, simpkins, lcharignon, quark, ttung, ikostia, rmcelroy
Reviewed By: ikostia, rmcelroy
Subscribers: wez, rmcelroy, net-systems-diffs@, mjpieters
Differential Revision: https://phabricator.intern.facebook.com/D3229776
Tasks: 11013909, 11017978
Signature: t1:3229776:1461839346:08b9b3414e43ff9966bc05591ca5662ef9691aac
2016-04-28 20:55:06 +03:00
|
|
|
$ hg log -r . --template "{phabdiff}: {tasks}\n"
|
2015-12-17 02:53:53 +03:00
|
|
|
D5678: 32 44
|