mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
065cbf8e8e
Summary: The test requires the Rust implementation of `debugrevset`. However by setting `workingcopy.use-rust` to False (default) the `clidispatch` would request falling back to a Python implementation of `debugrevset`, which does not exist. Fix it by setting `workingcopy.use-rust` to True. We should make sure `run-tests.py` and `debugruntest` has a same view of default hgrc. But that is a potentially breaking change and would be done separately. Reviewed By: zzl0 Differential Revision: D42825820 fbshipit-source-id: db537c0226d205f9fc5d1a464a6ef4b4d8793185
76 lines
1.8 KiB
Raku
76 lines
1.8 KiB
Raku
#debugruntest-compatible
|
|
|
|
$ configure modern
|
|
$ setconfig workingcopy.use-rust=True
|
|
|
|
Setup repo:
|
|
$ newclientrepo repo1
|
|
$ drawdag << 'EOS'
|
|
> G
|
|
> |
|
|
> F
|
|
> |
|
|
> E
|
|
> |
|
|
> D
|
|
> |
|
|
> C
|
|
> |
|
|
> B
|
|
> |
|
|
> A
|
|
> EOS
|
|
$ hg log -T "{node}\n"
|
|
43195508e3bb704c08d24c40375bdd826789dd72
|
|
a194cadd16930608adaa649035ad4c16930cbd0f
|
|
9bc730a19041f9ec7cb33c626e811aa233efb18c
|
|
f585351a92f85104bff7c284233c338b10eb1df7
|
|
26805aba1e600a82e93661149f2313866a221a7b
|
|
112478962961147124edd43549aedd1a335e44bf
|
|
426bada5c67598ca65036d57d9e4b64b0c1ce7a0
|
|
|
|
Test hash prefix lookup:
|
|
$ hg debugrevset 431
|
|
43195508e3bb704c08d24c40375bdd826789dd72
|
|
$ hg debugrevset 4
|
|
abort: ambiguous identifier for '4': 426bada5c67598ca65036d57d9e4b64b0c1ce7a0, 43195508e3bb704c08d24c40375bdd826789dd72 available
|
|
[255]
|
|
$ hg debugrevset 6
|
|
abort: unknown revision '6'
|
|
[255]
|
|
$ hg debugrevset thisshóuldnótbéfoünd
|
|
abort: unknown revision 'thissh*' (glob)
|
|
[255]
|
|
|
|
Test bookmark lookup
|
|
$ hg book -r 'desc(C)' mybookmark
|
|
$ hg debugrevset mybookmark
|
|
26805aba1e600a82e93661149f2313866a221a7b
|
|
|
|
Test dot revset lookup
|
|
$ hg debugrevset .
|
|
0000000000000000000000000000000000000000
|
|
$ hg debugrevset ""
|
|
0000000000000000000000000000000000000000
|
|
$ hg up 43195508e3
|
|
7 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ hg debugrevset .
|
|
43195508e3bb704c08d24c40375bdd826789dd72
|
|
$ hg debugrevset ""
|
|
43195508e3bb704c08d24c40375bdd826789dd72
|
|
|
|
Test misc revsets
|
|
$ hg debugrevset tip
|
|
43195508e3bb704c08d24c40375bdd826789dd72
|
|
$ hg debugrevset null
|
|
0000000000000000000000000000000000000000
|
|
|
|
Test resolution priority
|
|
$ hg book -r 'desc(A)' f
|
|
$ hg debugrevset f
|
|
426bada5c67598ca65036d57d9e4b64b0c1ce7a0
|
|
$ hg debugrevset tip
|
|
43195508e3bb704c08d24c40375bdd826789dd72
|
|
$ hg debugrevset null
|
|
0000000000000000000000000000000000000000
|