mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
de2e6fd858
Summary: The vanilla annotate command takes diffopts, let's add it to fastannotate. This is also useful to support hgweb correctly. Test Plan: Added a new test Reviewers: #sourcecontrol, simonfar Reviewed By: simonfar Subscribers: simonfar, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D3992672 Signature: t1:3992672:1475944204:2fbdf6a90d8c965775e3b7d5bc55fdb37c8909e7
38 lines
450 B
Raku
38 lines
450 B
Raku
$ extpath=`dirname $TESTDIR`
|
|
$ PYTHONPATH=$extpath:$TESTDIR/../:$PYTHONPATH
|
|
$ export PYTHONPATH
|
|
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> fastannotate=
|
|
> EOF
|
|
|
|
$ hg init repo
|
|
$ cd repo
|
|
|
|
changes to whitespaces
|
|
|
|
$ cat >> a << EOF
|
|
> 1
|
|
>
|
|
>
|
|
> 2
|
|
> EOF
|
|
$ hg commit -qAm '1'
|
|
$ cat > a << EOF
|
|
> 1
|
|
>
|
|
> 2
|
|
>
|
|
>
|
|
> 3
|
|
> EOF
|
|
$ hg commit -m 2
|
|
$ hg fastannotate -wB a
|
|
0: 1
|
|
0:
|
|
1: 2
|
|
0:
|
|
1:
|
|
1: 3
|