##// END OF EJS Templates
rank: add minimal test...
pacien -
r49608:3984e7d4 default
parent child Browse files
Show More
@@ -0,0 +1,38 b''
1 =============================================================
2 Check that we can compute and exchange revision rank properly
3 =============================================================
4
5 $ cat << EOF >> $HGRCPATH
6 > [format]
7 > exp-use-changelog-v2=enable-unstable-format-and-corrupt-my-data
8 > EOF
9
10
11 Test minimal rank computation with merge
12
13 $ hg init rank-repo-minimal
14 $ cd rank-repo-minimal
15 $ touch 0
16 $ hg commit -Aqm 0
17 $ touch 1
18 $ hg commit -Aqm 1
19 $ hg update -qr 0
20 $ touch 2
21 $ hg commit -Aqm 2
22 $ hg merge -qr 1
23 $ hg commit -m 3
24 $ touch 4
25 $ hg commit -Aqm 4
26 $ hg log --graph --template '{rev} {_fast_rank}\n'
27 @ 4 5
28 |
29 o 3 4
30 |\
31 | o 2 2
32 | |
33 o | 1 2
34 |/
35 o 0 1
36
37 $ cd ..
38
General Comments 0
You need to be logged in to leave comments. Login now