sapling/tests/test-fb-hgext-smartlog-revset.t
Jun Wu 770a8f102c smartlog: clean up master logic
Summary:
Use "interestingmaster()" to make it easier to see how "master" gets decided.

Change the type of "master" argument taken by "smartlog" revset from string to
revset.  This is more consistent with other revset functions.

Reviewed By: DurhamG

Differential Revision: D14436003

fbshipit-source-id: 5aa166b523f36672f77dc4f161ae8d64c2b50579
2019-03-14 20:14:37 -07:00

24 lines
407 B
Perl

$ newrepo
$ enable smartlog
$ drawdag << 'EOS'
> B C # B has date 100000 0
> |/ # C has date 200000 0
> A
> EOS
$ hg bookmark -ir $A master
$ hg log -r 'smartlog()' -T '{desc}\n'
A
B
C
$ hg log -r "smartlog($B)" -T '{desc}\n'
A
B
$ hg log -r "smartlog(heads=$C, master=$B)" -T '{desc}\n'
A
B
C
$ hg log -r "smartlog(master=($A::)-$B-$C)" -T '{desc}\n'
A
B
C