annotate tests/test-narrow-widen-linkrev-computation.t @ 51966:fb4d49c52c06

rust-cpython: also accept the `filteredrevs` argument in index.headrevs The C version have been accepting this argument since Mercurial 3.2, lets align the Rust index here. This will make it possible to simplify the code in later changesets.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 25 Sep 2024 21:43:21 +0200
parents 9c668377aa9f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
51632
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
1 ==============================================================================================
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
2 Test the computation of linkrev that is needed when sending file content after their changeset
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
3 ==============================================================================================
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
5 Setup
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
6 =====
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
7
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
8 tree/flat make the hash unstable had are anoying, reinstall that later.
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
9 .. #testcases tree flat
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
10 $ . "$TESTDIR/narrow-library.sh"
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
11
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
12 .. #if tree
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
13 .. $ cat << EOF >> $HGRCPATH
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
14 .. > [experimental]
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
15 .. > treemanifest = 1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
16 .. > EOF
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
17 .. #endif
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
18
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
19 $ hg init server
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
20 $ cd server
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
21
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
22 We build a non linear history with some filenome that exist in parallel.
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
23
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
24 $ echo foo > readme.txt
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
25 $ hg add readme.txt
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
26 $ hg ci -m 'root'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
27 $ mkdir dir_x
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
28 $ echo foo > dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
29 $ echo fo0 > dir_x/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
30 $ echo f0o > dir_x/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
31 $ mkdir dir_y
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
32 $ echo bar > dir_y/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
33 $ echo 8ar > dir_y/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
34 $ echo ba9 > dir_y/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
35 $ hg add dir_x dir_y
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
36 adding dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
37 adding dir_x/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
38 adding dir_x/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
39 adding dir_y/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
40 adding dir_y/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
41 adding dir_y/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
42 $ hg ci -m 'rev_a_'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
43
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
44 $ hg update 'desc("rev_a_")'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
45 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
46 $ echo foo-01 > dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
47 $ hg ci -m 'rev_b_0_'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
48
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
49 $ hg update 'desc("rev_b_0_")'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
50 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
51 $ echo foo-02 > dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
52 $ hg ci -m 'rev_b_1_'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
53
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
54 $ hg update 'desc("rev_a_")'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
55 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
56 $ mkdir dir_z
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
57 $ echo bar-01 > dir_y/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
58 $ echo 8ar-01 > dir_y/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
59 $ echo babar > dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
60 $ hg add dir_z
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
61 adding dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
62 $ hg ci -m 'rev_c_0_'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
63 created new head
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
64
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
65 $ hg update 'desc("rev_c_0_")'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
66 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
67 $ echo celeste > dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
68 $ echo zephir > dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
69 $ hg add dir_z
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
70 adding dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
71 $ hg ci -m 'rev_c_1_'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
72
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
73 $ hg update 'desc("rev_b_1_")'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
74 3 files updated, 0 files merged, 2 files removed, 0 files unresolved
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
75 $ echo fo0-01 > dir_x/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
76 $ mkdir dir_z
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
77 $ ls dir_z
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
78 $ echo babar > dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
79 $ echo celeste > dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
80 $ echo foo > dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
81 $ hg add dir_z
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
82 adding dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
83 adding dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
84 adding dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
85 $ hg ci -m 'rev_b_2_'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
86
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
87 $ hg update 'desc("rev_b_2_")'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
88 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
89 $ echo f0o-01 > dir_x/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
90 $ echo zephir > dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
91 $ echo arthur > dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
92 $ hg ci -m 'rev_b_3_'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
93
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
94 $ hg update 'desc("rev_c_1_")'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
95 6 files updated, 0 files merged, 1 files removed, 0 files unresolved
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
96 $ echo bar-02 > dir_y/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
97 $ echo ba9-01 > dir_y/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
98 $ echo bar > dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
99 $ hg add dir_z/
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
100 adding dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
101 $ echo arthur > dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
102 $ hg ci -m 'rev_c_2_'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
103
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
104 $ hg update 'desc("rev_b_3_")'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
105 7 files updated, 0 files merged, 1 files removed, 0 files unresolved
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
106 $ hg merge 'desc("rev_c_2_")'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
107 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
108 (branch merge, don't forget to commit)
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
109 $ echo flore > dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
110 $ echo foo-04 > dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
111 $ echo foo-01 > dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
112 $ hg ci -m 'rev_d_0_'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
113 $ echo alexandre > dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
114 $ echo bar-01 > dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
115 $ echo bar-04 > dir_y/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
116 $ hg ci -m 'rev_d_1_'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
117 $ hg status
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
118 $ hg status -A
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
119 C dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
120 C dir_x/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
121 C dir_x/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
122 C dir_y/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
123 C dir_y/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
124 C dir_y/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
125 C dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
126 C dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
127 C dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
128 C dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
129 C readme.txt
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
130 $ hg up null
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
131 0 files updated, 0 files merged, 11 files removed, 0 files unresolved
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
132
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
133 Resulting graph
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
134
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
135 $ hg log -GT "{rev}:{node|short}: {desc}\n {files}\n"
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
136 o 10:71e6a9c7a6a2: rev_d_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
137 | dir_y/f1 dir_z/f1 dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
138 o 9:b0a0cbe5ce57: rev_d_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
139 |\ dir_x/f1 dir_z/f1 dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
140 | o 8:d04e01dcc82d: rev_c_2_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
141 | | dir_y/f1 dir_y/f3 dir_z/f2 dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
142 o | 7:fc05b303b551: rev_b_3_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
143 | | dir_x/f3 dir_z/f1 dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
144 o | 6:17fd34adb43b: rev_b_2_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
145 | | dir_x/f2 dir_z/f1 dir_z/f2 dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
146 | o 5:fa05dbe8eed1: rev_c_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
147 | | dir_z/f1 dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
148 | o 4:59b4258b00dc: rev_c_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
149 | | dir_y/f1 dir_y/f2 dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
150 o | 3:328f8ced5276: rev_b_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
151 | | dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
152 o | 2:0ccce83dd29b: rev_b_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
153 |/ dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
154 o 1:63f468a0fdac: rev_a_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
155 | dir_x/f1 dir_x/f2 dir_x/f3 dir_y/f1 dir_y/f2 dir_y/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
156 o 0:4978c5c7386b: root
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
157 readme.txt
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
158
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
159 Useful save useful nodes :
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
160
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
161 $ hg log -T '{node}' > ../rev_c_2_ --rev 'desc("rev_c_2_")'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
162 $ hg log -T '{node}' > ../rev_b_3_ --rev 'desc("rev_b_3_")'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
163
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
164 Reference output
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
165
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
166 Since we have the same file conent on each side, we should get a limited number
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
167 of file revision (and the associated linkrev).
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
168
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
169 This these shared file-revision and the associated linkrev computation is
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
170 fueling the complexity test in this file.
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
171
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
172 $ cat > ../linkrev-check.sh << EOF
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
173 > echo '# expected linkrev for dir_z/f1'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
174 > hg log -T '0 {rev}\n' --rev 'min(desc(rev_b_2_) or desc(rev_c_0_))'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
175 > hg log -T '1 {rev}\n' --rev 'min(desc(rev_b_3_) or desc(rev_c_1_))'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
176 > hg log -T '2 {rev}\n' --rev 'min(desc(rev_d_0_))'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
177 > hg log -T '3 {rev}\n' --rev 'min(desc(rev_d_1_))'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
178 > hg debugindex dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
179 > # rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
180 > # 0 4 360afd990eef 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
181 > # 1 5 7054ee088631 360afd990eef 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
182 > # 2 9 6bb290463f21 7054ee088631 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
183 > # 3 10 91fec784ff86 6bb290463f21 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
184 > echo '# expected linkrev for dir_z/f2'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
185 > hg log -T '0 {rev}\n' --rev 'min(desc(rev_c_1_) or desc(rev_b_2_))'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
186 > hg log -T '1 {rev}\n' --rev 'min(desc(rev_c_2_) or desc(rev_b_3_))'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
187 > hg debugindex dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
188 > # rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
189 > # 0 5 093bb0f8a0fb 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
190 > # 1 7 0f47e254cb19 093bb0f8a0fb 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
191 > if hg files --rev tip | grep dir_z/f3 > /dev/null; then
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
192 > echo '# expected linkrev for dir_z/f3'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
193 > hg log -T '0 {rev}\n' --rev 'desc(rev_b_2_)'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
194 > hg log -T '1 {rev}\n' --rev 'desc(rev_d_0_)'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
195 > hg debugindex dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
196 > # rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
197 > # 0 6 2ed2a3912a0b 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
198 > # 1 9 7c6d649320ae 2ed2a3912a0b 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
199 > fi
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
200 > if hg files --rev tip | grep dir_z/f4 > /dev/null; then
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
201 > echo '# expected linkrev for dir_z/f4'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
202 > hg log -T '0 {rev}\n' --rev 'desc(rev_c_2_)'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
203 > hg log -T '1 {rev}\n' --rev 'desc(rev_d_1_)'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
204 > hg debugindex dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
205 > # rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
206 > # 0 8 b004912a8510 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
207 > # 1 10 9f85b3b95e70 b004912a8510 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
208 > fi
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
209 > echo '# verify the repository'
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
210 > hg verify
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
211 > EOF
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
212 $ sh ../linkrev-check.sh
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
213 # expected linkrev for dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
214 0 4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
215 1 5
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
216 2 9
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
217 3 10
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
218 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
219 0 4 360afd990eef 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
220 1 5 7054ee088631 360afd990eef 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
221 2 9 6bb290463f21 7054ee088631 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
222 3 10 91fec784ff86 6bb290463f21 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
223 # expected linkrev for dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
224 0 5
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
225 1 7
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
226 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
227 0 5 093bb0f8a0fb 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
228 1 7 0f47e254cb19 093bb0f8a0fb 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
229 # expected linkrev for dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
230 0 6
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
231 1 9
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
232 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
233 0 6 2ed2a3912a0b 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
234 1 9 7c6d649320ae 2ed2a3912a0b 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
235 # expected linkrev for dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
236 0 8
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
237 1 10
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
238 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
239 0 8 b004912a8510 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
240 1 10 9f85b3b95e70 b004912a8510 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
241 # verify the repository
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
242 checking changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
243 checking manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
244 crosschecking files in changesets and manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
245 checking files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
246 checking dirstate
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
247 checked 11 changesets with 27 changes to 11 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
248
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
249 $ cd ..
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
250
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
251 Test linkrev computation for various widening scenario
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
252 ======================================================
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
253
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
254 Having cloning all revisions initially
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
255 --------------------------------------
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
256
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
257 $ hg clone --narrow ssh://user@dummy/server --include dir_x --include dir_y client_xy_rev_all --noupdate
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
258 requesting all changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
259 adding changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
260 adding manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
261 adding file changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
262 added 11 changesets with 16 changes to 6 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
263 new changesets 4978c5c7386b:71e6a9c7a6a2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
264 $ cd client_xy_rev_all
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
265 $ hg log -GT "{rev}:{node|short}: {desc}\n {files}\n"
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
266 o 10:71e6a9c7a6a2: rev_d_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
267 | dir_y/f1 dir_z/f1 dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
268 o 9:b0a0cbe5ce57: rev_d_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
269 |\ dir_x/f1 dir_z/f1 dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
270 | o 8:d04e01dcc82d: rev_c_2_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
271 | | dir_y/f1 dir_y/f3 dir_z/f2 dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
272 o | 7:fc05b303b551: rev_b_3_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
273 | | dir_x/f3 dir_z/f1 dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
274 o | 6:17fd34adb43b: rev_b_2_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
275 | | dir_x/f2 dir_z/f1 dir_z/f2 dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
276 | o 5:fa05dbe8eed1: rev_c_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
277 | | dir_z/f1 dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
278 | o 4:59b4258b00dc: rev_c_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
279 | | dir_y/f1 dir_y/f2 dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
280 o | 3:328f8ced5276: rev_b_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
281 | | dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
282 o | 2:0ccce83dd29b: rev_b_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
283 |/ dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
284 o 1:63f468a0fdac: rev_a_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
285 | dir_x/f1 dir_x/f2 dir_x/f3 dir_y/f1 dir_y/f2 dir_y/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
286 o 0:4978c5c7386b: root
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
287 readme.txt
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
288
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
289 $ hg tracked --addinclude dir_z
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
290 comparing with ssh://user@dummy/server
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
291 searching for changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
292 adding changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
293 adding manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
294 adding file changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
295 added 0 changesets with 10 changes to 4 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
296 $ sh ../linkrev-check.sh
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
297 # expected linkrev for dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
298 0 4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
299 1 5
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
300 2 9
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
301 3 10
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
302 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
303 0 4 360afd990eef 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
304 1 5 7054ee088631 360afd990eef 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
305 2 9 6bb290463f21 7054ee088631 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
306 3 10 91fec784ff86 6bb290463f21 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
307 # expected linkrev for dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
308 0 5
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
309 1 7
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
310 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
311 0 5 093bb0f8a0fb 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
312 1 7 0f47e254cb19 093bb0f8a0fb 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
313 # expected linkrev for dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
314 0 6
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
315 1 9
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
316 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
317 0 6 2ed2a3912a0b 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
318 1 9 7c6d649320ae 2ed2a3912a0b 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
319 # expected linkrev for dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
320 0 8
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
321 1 10
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
322 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
323 0 8 b004912a8510 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
324 1 10 9f85b3b95e70 b004912a8510 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
325 # verify the repository
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
326 checking changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
327 checking manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
328 crosschecking files in changesets and manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
329 checking files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
330 checking dirstate
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
331 checked 11 changesets with 26 changes to 10 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
332 $ cd ..
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
333
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
334
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
335 Having cloning all only branch b
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
336 --------------------------------
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
337
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
338 $ hg clone --narrow ssh://user@dummy/server --rev `cat ./rev_b_3_` --include dir_x --include dir_y client_xy_rev_from_b_only --noupdate
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
339 adding changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
340 adding manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
341 adding file changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
342 added 6 changesets with 10 changes to 6 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
343 new changesets 4978c5c7386b:fc05b303b551
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
344 $ cd client_xy_rev_from_b_only
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
345 $ hg log -GT "{rev}:{node|short}: {desc}\n {files}\n"
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
346 o 5:fc05b303b551: rev_b_3_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
347 | dir_x/f3 dir_z/f1 dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
348 o 4:17fd34adb43b: rev_b_2_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
349 | dir_x/f2 dir_z/f1 dir_z/f2 dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
350 o 3:328f8ced5276: rev_b_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
351 | dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
352 o 2:0ccce83dd29b: rev_b_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
353 | dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
354 o 1:63f468a0fdac: rev_a_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
355 | dir_x/f1 dir_x/f2 dir_x/f3 dir_y/f1 dir_y/f2 dir_y/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
356 o 0:4978c5c7386b: root
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
357 readme.txt
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
358
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
359 $ hg tracked --addinclude dir_z
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
360 comparing with ssh://user@dummy/server
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
361 searching for changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
362 adding changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
363 adding manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
364 adding file changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
365 added 0 changesets with 5 changes to 3 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
366 $ sh ../linkrev-check.sh
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
367 # expected linkrev for dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
368 0 4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
369 1 5
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
370 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
371 0 4 360afd990eef 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
372 1 5 7054ee088631 360afd990eef 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
373 # expected linkrev for dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
374 0 4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
375 1 5
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
376 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
377 0 4 093bb0f8a0fb 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
378 1 5 0f47e254cb19 093bb0f8a0fb 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
379 # expected linkrev for dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
380 0 4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
381 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
382 0 4 2ed2a3912a0b 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
383 # verify the repository
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
384 checking changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
385 checking manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
386 crosschecking files in changesets and manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
387 checking files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
388 checking dirstate
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
389 checked 6 changesets with 15 changes to 9 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
390 $ cd ..
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
391
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
392
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
393 Having cloning all only branch c
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
394 --------------------------------
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
395
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
396 $ hg clone --narrow ssh://user@dummy/server --rev `cat ./rev_c_2_` --include dir_x --include dir_y client_xy_rev_from_c_only --noupdate
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
397 adding changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
398 adding manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
399 adding file changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
400 added 5 changesets with 10 changes to 6 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
401 new changesets 4978c5c7386b:d04e01dcc82d
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
402 $ cd client_xy_rev_from_c_only
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
403 $ hg log -GT "{rev}:{node|short}: {desc}\n {files}\n"
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
404 o 4:d04e01dcc82d: rev_c_2_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
405 | dir_y/f1 dir_y/f3 dir_z/f2 dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
406 o 3:fa05dbe8eed1: rev_c_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
407 | dir_z/f1 dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
408 o 2:59b4258b00dc: rev_c_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
409 | dir_y/f1 dir_y/f2 dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
410 o 1:63f468a0fdac: rev_a_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
411 | dir_x/f1 dir_x/f2 dir_x/f3 dir_y/f1 dir_y/f2 dir_y/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
412 o 0:4978c5c7386b: root
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
413 readme.txt
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
414
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
415 $ hg tracked --addinclude dir_z
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
416 comparing with ssh://user@dummy/server
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
417 searching for changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
418 adding changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
419 adding manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
420 adding file changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
421 added 0 changesets with 5 changes to 3 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
422 $ sh ../linkrev-check.sh
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
423 # expected linkrev for dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
424 0 2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
425 1 3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
426 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
427 0 2 360afd990eef 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
428 1 3 7054ee088631 360afd990eef 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
429 # expected linkrev for dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
430 0 3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
431 1 4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
432 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
433 0 3 093bb0f8a0fb 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
434 1 4 0f47e254cb19 093bb0f8a0fb 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
435 # expected linkrev for dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
436 0 4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
437 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
438 0 4 b004912a8510 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
439 # verify the repository
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
440 checking changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
441 checking manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
442 crosschecking files in changesets and manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
443 checking files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
444 checking dirstate
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
445 checked 5 changesets with 15 changes to 9 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
446 $ cd ..
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
447
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
448 Having cloning all first branch b
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
449 ---------------------------------
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
450
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
451 $ hg clone --narrow ssh://user@dummy/server --rev `cat ./rev_b_3_` --include dir_x --include dir_y client_xy_rev_from_b_first --noupdate
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
452 adding changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
453 adding manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
454 adding file changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
455 added 6 changesets with 10 changes to 6 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
456 new changesets 4978c5c7386b:fc05b303b551
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
457 $ cd client_xy_rev_from_b_first
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
458 $ hg pull
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
459 pulling from ssh://user@dummy/server
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
460 searching for changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
461 adding changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
462 adding manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
463 adding file changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
464 added 5 changesets with 6 changes to 4 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
465 new changesets 59b4258b00dc:71e6a9c7a6a2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
466 (run 'hg update' to get a working copy)
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
467 $ hg log -GT "{rev}:{node|short}: {desc}\n {files}\n"
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
468 o 10:71e6a9c7a6a2: rev_d_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
469 | dir_y/f1 dir_z/f1 dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
470 o 9:b0a0cbe5ce57: rev_d_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
471 |\ dir_x/f1 dir_z/f1 dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
472 | o 8:d04e01dcc82d: rev_c_2_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
473 | | dir_y/f1 dir_y/f3 dir_z/f2 dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
474 | o 7:fa05dbe8eed1: rev_c_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
475 | | dir_z/f1 dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
476 | o 6:59b4258b00dc: rev_c_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
477 | | dir_y/f1 dir_y/f2 dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
478 o | 5:fc05b303b551: rev_b_3_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
479 | | dir_x/f3 dir_z/f1 dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
480 o | 4:17fd34adb43b: rev_b_2_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
481 | | dir_x/f2 dir_z/f1 dir_z/f2 dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
482 o | 3:328f8ced5276: rev_b_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
483 | | dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
484 o | 2:0ccce83dd29b: rev_b_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
485 |/ dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
486 o 1:63f468a0fdac: rev_a_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
487 | dir_x/f1 dir_x/f2 dir_x/f3 dir_y/f1 dir_y/f2 dir_y/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
488 o 0:4978c5c7386b: root
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
489 readme.txt
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
490
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
491 $ hg tracked --addinclude dir_z
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
492 comparing with ssh://user@dummy/server
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
493 searching for changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
494 adding changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
495 adding manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
496 adding file changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
497 added 0 changesets with 10 changes to 4 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
498 $ sh ../linkrev-check.sh
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
499 # expected linkrev for dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
500 0 4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
501 1 5
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
502 2 9
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
503 3 10
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
504 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
505 0 6 360afd990eef 000000000000 000000000000 (known-bad-output !)
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
506 0 4 360afd990eef 000000000000 000000000000 (missing-correct-output !)
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
507 1 7 7054ee088631 360afd990eef 000000000000 (known-bad-output !)
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
508 1 5 7054ee088631 360afd990eef 000000000000 (missing-correct-output !)
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
509 2 9 6bb290463f21 7054ee088631 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
510 3 10 91fec784ff86 6bb290463f21 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
511 # expected linkrev for dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
512 0 4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
513 1 5
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
514 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
515 0 7 093bb0f8a0fb 000000000000 000000000000 (known-bad-output !)
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
516 0 4 093bb0f8a0fb 000000000000 000000000000 (missing-correct-output !)
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
517 1 5 0f47e254cb19 093bb0f8a0fb 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
518 # expected linkrev for dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
519 0 4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
520 1 9
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
521 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
522 0 4 2ed2a3912a0b 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
523 1 9 7c6d649320ae 2ed2a3912a0b 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
524 # expected linkrev for dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
525 0 8
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
526 1 10
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
527 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
528 0 8 b004912a8510 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
529 1 10 9f85b3b95e70 b004912a8510 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
530 # verify the repository
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
531 checking changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
532 checking manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
533 crosschecking files in changesets and manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
534 checking files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
535 checking dirstate
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
536 checked 11 changesets with 26 changes to 10 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
537 $ cd ..
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
538
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
539
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
540 Having cloning all first branch c
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
541 ---------------------------------
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
542
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
543 $ hg clone --narrow ssh://user@dummy/server --rev `cat ./rev_c_2_` --include dir_x --include dir_y client_xy_rev_from_c_first --noupdate
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
544 adding changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
545 adding manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
546 adding file changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
547 added 5 changesets with 10 changes to 6 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
548 new changesets 4978c5c7386b:d04e01dcc82d
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
549 $ cd client_xy_rev_from_c_first
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
550 $ hg pull
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
551 pulling from ssh://user@dummy/server
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
552 searching for changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
553 adding changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
554 adding manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
555 adding file changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
556 added 6 changesets with 6 changes to 4 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
557 new changesets 0ccce83dd29b:71e6a9c7a6a2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
558 (run 'hg update' to get a working copy)
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
559 $ hg log -GT "{rev}:{node|short}: {desc}\n {files}\n"
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
560 o 10:71e6a9c7a6a2: rev_d_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
561 | dir_y/f1 dir_z/f1 dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
562 o 9:b0a0cbe5ce57: rev_d_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
563 |\ dir_x/f1 dir_z/f1 dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
564 | o 8:fc05b303b551: rev_b_3_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
565 | | dir_x/f3 dir_z/f1 dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
566 | o 7:17fd34adb43b: rev_b_2_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
567 | | dir_x/f2 dir_z/f1 dir_z/f2 dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
568 | o 6:328f8ced5276: rev_b_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
569 | | dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
570 | o 5:0ccce83dd29b: rev_b_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
571 | | dir_x/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
572 o | 4:d04e01dcc82d: rev_c_2_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
573 | | dir_y/f1 dir_y/f3 dir_z/f2 dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
574 o | 3:fa05dbe8eed1: rev_c_1_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
575 | | dir_z/f1 dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
576 o | 2:59b4258b00dc: rev_c_0_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
577 |/ dir_y/f1 dir_y/f2 dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
578 o 1:63f468a0fdac: rev_a_
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
579 | dir_x/f1 dir_x/f2 dir_x/f3 dir_y/f1 dir_y/f2 dir_y/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
580 o 0:4978c5c7386b: root
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
581 readme.txt
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
582
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
583 $ hg tracked --addinclude dir_z
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
584 comparing with ssh://user@dummy/server
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
585 searching for changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
586 adding changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
587 adding manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
588 adding file changes
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
589 added 0 changesets with 10 changes to 4 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
590 $ sh ../linkrev-check.sh
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
591 # expected linkrev for dir_z/f1
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
592 0 2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
593 1 3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
594 2 9
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
595 3 10
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
596 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
597 0 2 360afd990eef 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
598 1 3 7054ee088631 360afd990eef 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
599 2 9 6bb290463f21 7054ee088631 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
600 3 10 91fec784ff86 6bb290463f21 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
601 # expected linkrev for dir_z/f2
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
602 0 3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
603 1 4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
604 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
605 0 3 093bb0f8a0fb 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
606 1 8 0f47e254cb19 093bb0f8a0fb 000000000000 (known-bad-output !)
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
607 1 4 0f47e254cb19 093bb0f8a0fb 000000000000 (missing-correct-output !)
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
608 # expected linkrev for dir_z/f3
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
609 0 7
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
610 1 9
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
611 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
612 0 7 2ed2a3912a0b 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
613 1 9 7c6d649320ae 2ed2a3912a0b 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
614 # expected linkrev for dir_z/f4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
615 0 4
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
616 1 10
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
617 rev linkrev nodeid p1-nodeid p2-nodeid
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
618 0 4 b004912a8510 000000000000 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
619 1 10 9f85b3b95e70 b004912a8510 000000000000
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
620 # verify the repository
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
621 checking changesets
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
622 checking manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
623 crosschecking files in changesets and manifests
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
624 checking files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
625 checking dirstate
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
626 checked 11 changesets with 26 changes to 10 files
9c668377aa9f narrow: add a test for linkrev computation done during widen
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
627 $ cd ..