smartlog: add a test about revset

Summary:
Add a simple test about smartset revset. It shows "smartlog(master=revset)"
does not work.

Reviewed By: DurhamG

Differential Revision: D14436005

fbshipit-source-id: e566aa35d1cb335718a48db1314454d2dc50411b
This commit is contained in:
Jun Wu 2019-03-14 20:07:05 -07:00 committed by Facebook Github Bot
parent 728438892a
commit 9b4487b1c5

View File

@ -0,0 +1,22 @@
$ 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'
hg: parse error: master must be a string
[255]