mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
a181acb8ca
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
47 lines
562 B
Perl
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
|
|
|