mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 09:48:05 +03:00
770a8f102c
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
24 lines
407 B
Perl
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
|