sapling/tests/test-log-dir.t
Saurabh Singh a181acb8ca test-log-dir: fix the test by avoiding case collisions
Summary:
This test is failing on OSX due to case collisions. Let's just avoid
the case collisions by using the directory name as `x` instead of `a`.

Reviewed By: quark-zju

Differential Revision: D15083754

fbshipit-source-id: 0752f06c71c315e349a8eea8dbe7da14e564f1b2
2019-04-25 11:27:58 -07:00

47 lines
562 B
Perl

$ newrepo
$ drawdag <<'EOS'
> C # C/x/3=3
> | D # C/x/2=2
> |/ # D/x/4=4
> B
> |
> A # A/x/1=1
> EOS
$ hg update -q $C
Log a directory:
$ hg log -T '{desc}\n' -f x
C
A
From non-repo root:
$ cd x
$ hg log -G -T '{desc}\n' -f .
@ C
:
o A
Using the follow revset, which is related to repo root:
$ hg log -G -T '{desc}\n' -r 'follow("x")'
@ C
:
o A
$ hg log -G -T '{desc}\n' -r 'follow(".")'
@ C
|
o B
|
o A
$ hg log -G -T '{desc}\n' -r 'follow("relpath:.")'
@ C
:
o A