sapling/tests/test-fastmanifest-readfast.t
Jun Wu 417bff83a4 fastmanifest: add the missing readfast method
Summary:
Upstream 4718718ed358 requires a `readfast` method for manifestctx.
`hybridmanifestctx` does not have such method so let's add it.

Test Plan: Added a test.

Reviewers: durham, ttung, #sourcecontrol, rmcelroy

Reviewed By: rmcelroy

Subscribers: mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3955478

Signature: t1:3955478:1475582074:f80c9eb97bcd42846625727ef1da4bce3256c88c
2016-10-01 01:34:50 +01:00

28 lines
534 B
Perl

$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
$ export PYTHONPATH
$ cat >> $HGRCPATH << EOF
> [extensions]
> fastmanifest=
> EOF
$ hg init repo
$ cd repo
a situation that linkrev needs to be adjusted:
$ echo 1 > a
$ hg commit -A a -m 1
$ echo 2 > a
$ hg commit -m 2
$ hg up 0 -q
$ echo 2 > a
$ hg commit -m '2 again' -q
annotate calls "introrev", which calls "_adjustlinkrev". in this case,
"_adjustlinkrev" will fallback to the slow path that needs to call
manifestctx."readfast":
$ hg annotate a
2: 2