2016-10-01 03:34:50 +03:00
|
|
|
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
|
|
|
$ export PYTHONPATH
|
|
|
|
|
|
|
|
$ cat >> $HGRCPATH << EOF
|
|
|
|
> [extensions]
|
2017-06-19 18:02:38 +03:00
|
|
|
> fastmanifest=$TESTDIR/../fastmanifest
|
2016-10-01 03:34:50 +03:00
|
|
|
> 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
|