mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
fceac7d85b
Summary: There was a recent change in mercurial and revsets shouldn't return lists anymore. This diff fixes it. This diff also fixes git diff handling. It returned not even a list, but a single rev number. Unfortunately it's not tested because we need to mock conduit response. Test Plan: arc unit Reviewers: #mercurial, ikostia Reviewed By: ikostia Subscribers: ikostia, kulshrax, mjpieters, #sourcecontrol Differential Revision: https://phabricator.intern.facebook.com/D4938930 Signature: t1:4938930:1493051696:cfb278773e5932d5f38942b0a0ca49f018ec5083
16 lines
436 B
Perl
16 lines
436 B
Perl
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> phrevset=$TESTDIR/../hgext3rd/phrevset.py
|
|
> EOF
|
|
$ hg init repo
|
|
$ cd repo
|
|
$ echo 1 > 1
|
|
$ hg add 1
|
|
$ hg commit -m 'Differential Revision: http.ololo.com/D1234'
|
|
$ hg up -q 0
|
|
$ hg up D1234
|
|
phrevset.callsign is not set - doing a linear search
|
|
This will be slow if the diff was not committed recently
|
|
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
|