mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 09:48:05 +03:00
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:
parent
728438892a
commit
9b4487b1c5
22
tests/test-fb-hgext-smartlog-revset.t
Normal file
22
tests/test-fb-hgext-smartlog-revset.t
Normal 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]
|
Loading…
Reference in New Issue
Block a user