Show More
@@ -1,388 +1,388 | |||||
1 |
|
1 | |||
2 | $ "$TESTDIR/hghave" mtn || exit 80 |
|
2 | $ "$TESTDIR/hghave" mtn || exit 80 | |
3 |
|
3 | |||
4 | Monotone directory is called .monotone on *nix and monotone |
|
4 | Monotone directory is called .monotone on *nix and monotone | |
5 | on Windows. Having a variable here ease test patching. |
|
5 | on Windows. Having a variable here ease test patching. | |
6 |
|
6 | |||
7 | $ mtndir=.monotone |
|
7 | $ mtndir=.monotone | |
8 | $ echo "[extensions]" >> $HGRCPATH |
|
8 | $ echo "[extensions]" >> $HGRCPATH | |
9 | $ echo "convert=" >> $HGRCPATH |
|
9 | $ echo "convert=" >> $HGRCPATH | |
10 | $ echo 'graphlog =' >> $HGRCPATH |
|
10 | $ echo 'graphlog =' >> $HGRCPATH | |
11 |
|
11 | |||
12 | Windows version of monotone home |
|
12 | Windows version of monotone home | |
13 |
|
13 | |||
14 | $ APPDATA=$HOME; export APPDATA |
|
14 | $ APPDATA=$HOME; export APPDATA | |
15 |
|
15 | |||
16 | tedious monotone keys configuration |
|
16 | tedious monotone keys configuration | |
17 | The /dev/null redirection is necessary under Windows, or |
|
17 | The /dev/null redirection is necessary under Windows, or | |
18 | it complains about home directory permissions |
|
18 | it complains about home directory permissions | |
19 |
|
19 | |||
20 | $ mtn --quiet genkey test@selenic.com 1>/dev/null 2>&1 <<EOF |
|
20 | $ mtn --quiet genkey test@selenic.com 1>/dev/null 2>&1 <<EOF | |
21 | > passphrase |
|
21 | > passphrase | |
22 | > passphrase |
|
22 | > passphrase | |
23 | > EOF |
|
23 | > EOF | |
24 | $ cat >> $HOME/$mtndir/monotonerc <<EOF |
|
24 | $ cat >> $HOME/$mtndir/monotonerc <<EOF | |
25 | > function get_passphrase(keypair_id) |
|
25 | > function get_passphrase(keypair_id) | |
26 | > return "passphrase" |
|
26 | > return "passphrase" | |
27 | > end |
|
27 | > end | |
28 | > EOF |
|
28 | > EOF | |
29 |
|
29 | |||
30 | create monotone repository |
|
30 | create monotone repository | |
31 |
|
31 | |||
32 | $ mtn db init --db=repo.mtn |
|
32 | $ mtn db init --db=repo.mtn | |
33 | $ mtn --db=repo.mtn --branch=com.selenic.test setup workingdir |
|
33 | $ mtn --db=repo.mtn --branch=com.selenic.test setup workingdir | |
34 | $ cd workingdir |
|
34 | $ cd workingdir | |
35 | $ echo a > a |
|
35 | $ echo a > a | |
36 | $ mkdir dir |
|
36 | $ mkdir dir | |
37 | $ echo b > dir/b |
|
37 | $ echo b > dir/b | |
38 | $ echo d > dir/d |
|
38 | $ echo d > dir/d | |
39 | $ python -c 'file("bin", "wb").write("a\\x00b")' |
|
39 | $ python -c 'file("bin", "wb").write("a\\x00b")' | |
40 | $ echo c > c |
|
40 | $ echo c > c | |
41 | $ mtn add a dir/b dir/d c bin |
|
41 | $ mtn add a dir/b dir/d c bin | |
42 | mtn: adding a to workspace manifest |
|
42 | mtn: adding 'a' to workspace manifest | |
43 | mtn: adding bin to workspace manifest |
|
43 | mtn: adding 'bin' to workspace manifest | |
44 | mtn: adding c to workspace manifest |
|
44 | mtn: adding 'c' to workspace manifest | |
45 | mtn: adding dir to workspace manifest |
|
45 | mtn: adding 'dir' to workspace manifest | |
46 | mtn: adding dir/b to workspace manifest |
|
46 | mtn: adding 'dir/b' to workspace manifest | |
47 | mtn: adding dir/d to workspace manifest |
|
47 | mtn: adding 'dir/d' to workspace manifest | |
48 | $ mtn ci -m initialize |
|
48 | $ mtn ci -m initialize | |
49 | mtn: beginning commit on branch 'com.selenic.test' |
|
49 | mtn: beginning commit on branch 'com.selenic.test' | |
50 | mtn: committed revision 0f6e5e4f2e7d2a8ef312408f57618abf026afd90 |
|
50 | mtn: committed revision 0f6e5e4f2e7d2a8ef312408f57618abf026afd90 | |
51 |
|
51 | |||
52 | update monotone working directory |
|
52 | update monotone working directory | |
53 |
|
53 | |||
54 | $ mtn mv a dir/a |
|
54 | $ mtn mv a dir/a | |
55 | mtn: skipping dir, already accounted for in workspace |
|
55 | mtn: skipping 'dir', already accounted for in workspace | |
56 | mtn: renaming a to dir/a in workspace manifest |
|
56 | mtn: renaming 'a' to 'dir/a' in workspace manifest | |
57 | $ echo a >> dir/a |
|
57 | $ echo a >> dir/a | |
58 | $ echo b >> dir/b |
|
58 | $ echo b >> dir/b | |
59 | $ mtn drop c |
|
59 | $ mtn drop c | |
60 | mtn: dropping c from workspace manifest |
|
60 | mtn: dropping 'c' from workspace manifest | |
61 | $ python -c 'file("bin", "wb").write("b\\x00c")' |
|
61 | $ python -c 'file("bin", "wb").write("b\\x00c")' | |
62 | $ mtn ci -m update1 |
|
62 | $ mtn ci -m update1 | |
63 | mtn: beginning commit on branch 'com.selenic.test' |
|
63 | mtn: beginning commit on branch 'com.selenic.test' | |
64 | mtn: committed revision 51d0a982464573a2a2cf5ee2c9219c652aaebeff |
|
64 | mtn: committed revision 51d0a982464573a2a2cf5ee2c9219c652aaebeff | |
65 | $ cd .. |
|
65 | $ cd .. | |
66 |
|
66 | |||
67 | convert once |
|
67 | convert once | |
68 |
|
68 | |||
69 | $ hg convert -s mtn repo.mtn |
|
69 | $ hg convert -s mtn repo.mtn | |
70 | assuming destination repo.mtn-hg |
|
70 | assuming destination repo.mtn-hg | |
71 | initializing destination repo.mtn-hg repository |
|
71 | initializing destination repo.mtn-hg repository | |
72 | scanning source... |
|
72 | scanning source... | |
73 | sorting... |
|
73 | sorting... | |
74 | converting... |
|
74 | converting... | |
75 | 1 initialize |
|
75 | 1 initialize | |
76 | 0 update1 |
|
76 | 0 update1 | |
77 | $ cd workingdir |
|
77 | $ cd workingdir | |
78 | $ echo e > e |
|
78 | $ echo e > e | |
79 | $ mtn add e |
|
79 | $ mtn add e | |
80 | mtn: adding e to workspace manifest |
|
80 | mtn: adding 'e' to workspace manifest | |
81 | $ mtn drop dir/b |
|
81 | $ mtn drop dir/b | |
82 | mtn: dropping dir/b from workspace manifest |
|
82 | mtn: dropping 'dir/b' from workspace manifest | |
83 | $ mtn mv bin bin2 |
|
83 | $ mtn mv bin bin2 | |
84 | mtn: renaming bin to bin2 in workspace manifest |
|
84 | mtn: renaming 'bin' to 'bin2' in workspace manifest | |
85 | $ mtn ci -m 'update2 "with" quotes' |
|
85 | $ mtn ci -m 'update2 "with" quotes' | |
86 | mtn: beginning commit on branch 'com.selenic.test' |
|
86 | mtn: beginning commit on branch 'com.selenic.test' | |
87 | mtn: committed revision ebe58335d85d8cb176b6d0a12be04f5314b998da |
|
87 | mtn: committed revision ebe58335d85d8cb176b6d0a12be04f5314b998da | |
88 |
|
88 | |||
89 | test directory move |
|
89 | test directory move | |
90 |
|
90 | |||
91 | $ mkdir -p dir1/subdir1 |
|
91 | $ mkdir -p dir1/subdir1 | |
92 | $ mkdir -p dir1/subdir2_other |
|
92 | $ mkdir -p dir1/subdir2_other | |
93 | $ echo file1 > dir1/subdir1/file1 |
|
93 | $ echo file1 > dir1/subdir1/file1 | |
94 | $ echo file2 > dir1/subdir2_other/file1 |
|
94 | $ echo file2 > dir1/subdir2_other/file1 | |
95 | $ mtn add dir1/subdir1/file1 dir1/subdir2_other/file1 |
|
95 | $ mtn add dir1/subdir1/file1 dir1/subdir2_other/file1 | |
96 | mtn: adding dir1 to workspace manifest |
|
96 | mtn: adding 'dir1' to workspace manifest | |
97 | mtn: adding dir1/subdir1 to workspace manifest |
|
97 | mtn: adding 'dir1/subdir1' to workspace manifest | |
98 | mtn: adding dir1/subdir1/file1 to workspace manifest |
|
98 | mtn: adding 'dir1/subdir1/file1' to workspace manifest | |
99 | mtn: adding dir1/subdir2_other to workspace manifest |
|
99 | mtn: adding 'dir1/subdir2_other' to workspace manifest | |
100 | mtn: adding dir1/subdir2_other/file1 to workspace manifest |
|
100 | mtn: adding 'dir1/subdir2_other/file1' to workspace manifest | |
101 | $ mtn ci -m createdir1 |
|
101 | $ mtn ci -m createdir1 | |
102 | mtn: beginning commit on branch 'com.selenic.test' |
|
102 | mtn: beginning commit on branch 'com.selenic.test' | |
103 | mtn: committed revision a8d62bc04fee4d2936d28e98bbcc81686dd74306 |
|
103 | mtn: committed revision a8d62bc04fee4d2936d28e98bbcc81686dd74306 | |
104 | $ mtn rename dir1/subdir1 dir1/subdir2 |
|
104 | $ mtn rename dir1/subdir1 dir1/subdir2 | |
105 | mtn: skipping dir1, already accounted for in workspace |
|
105 | mtn: skipping 'dir1', already accounted for in workspace | |
106 | mtn: renaming dir1/subdir1 to dir1/subdir2 in workspace manifest |
|
106 | mtn: renaming 'dir1/subdir1' to 'dir1/subdir2' in workspace manifest | |
107 | $ mtn ci -m movedir1 |
|
107 | $ mtn ci -m movedir1 | |
108 | mtn: beginning commit on branch 'com.selenic.test' |
|
108 | mtn: beginning commit on branch 'com.selenic.test' | |
109 | mtn: committed revision 2c3d241bbbfe538b1b51d910f5676407e3f4d3a6 |
|
109 | mtn: committed revision 2c3d241bbbfe538b1b51d910f5676407e3f4d3a6 | |
110 |
|
110 | |||
111 | test subdirectory move |
|
111 | test subdirectory move | |
112 |
|
112 | |||
113 | $ mtn mv dir dir2 |
|
113 | $ mtn mv dir dir2 | |
114 | mtn: renaming dir to dir2 in workspace manifest |
|
114 | mtn: renaming 'dir' to 'dir2' in workspace manifest | |
115 | $ echo newfile > dir2/newfile |
|
115 | $ echo newfile > dir2/newfile | |
116 | $ mtn drop dir2/d |
|
116 | $ mtn drop dir2/d | |
117 | mtn: dropping dir2/d from workspace manifest |
|
117 | mtn: dropping 'dir2/d' from workspace manifest | |
118 | $ mtn add dir2/newfile |
|
118 | $ mtn add dir2/newfile | |
119 | mtn: adding dir2/newfile to workspace manifest |
|
119 | mtn: adding 'dir2/newfile' to workspace manifest | |
120 | $ mtn ci -m movedir |
|
120 | $ mtn ci -m movedir | |
121 | mtn: beginning commit on branch 'com.selenic.test' |
|
121 | mtn: beginning commit on branch 'com.selenic.test' | |
122 | mtn: committed revision fdb5a02dae8bfce3a79b3393680af471016e1b4c |
|
122 | mtn: committed revision fdb5a02dae8bfce3a79b3393680af471016e1b4c | |
123 |
|
123 | |||
124 | Test directory removal with empty directory |
|
124 | Test directory removal with empty directory | |
125 |
|
125 | |||
126 | $ mkdir dir2/dir |
|
126 | $ mkdir dir2/dir | |
127 | $ mkdir dir2/dir/subdir |
|
127 | $ mkdir dir2/dir/subdir | |
128 | $ echo f > dir2/dir/subdir/f |
|
128 | $ echo f > dir2/dir/subdir/f | |
129 | $ mkdir dir2/dir/emptydir |
|
129 | $ mkdir dir2/dir/emptydir | |
130 | $ mtn add --quiet -R dir2/dir |
|
130 | $ mtn add --quiet -R dir2/dir | |
131 | $ mtn ci -m emptydir |
|
131 | $ mtn ci -m emptydir | |
132 | mtn: beginning commit on branch 'com.selenic.test' |
|
132 | mtn: beginning commit on branch 'com.selenic.test' | |
133 | mtn: committed revision 8bbf76d717001d24964e4604739fdcd0f539fc88 |
|
133 | mtn: committed revision 8bbf76d717001d24964e4604739fdcd0f539fc88 | |
134 | $ mtn drop -R dir2/dir |
|
134 | $ mtn drop -R dir2/dir | |
135 | mtn: dropping dir2/dir/subdir/f from workspace manifest |
|
135 | mtn: dropping 'dir2/dir/subdir/f' from workspace manifest | |
136 | mtn: dropping dir2/dir/subdir from workspace manifest |
|
136 | mtn: dropping 'dir2/dir/subdir' from workspace manifest | |
137 | mtn: dropping dir2/dir/emptydir from workspace manifest |
|
137 | mtn: dropping 'dir2/dir/emptydir' from workspace manifest | |
138 | mtn: dropping dir2/dir from workspace manifest |
|
138 | mtn: dropping 'dir2/dir' from workspace manifest | |
139 | $ mtn ci -m dropdirectory |
|
139 | $ mtn ci -m dropdirectory | |
140 | mtn: beginning commit on branch 'com.selenic.test' |
|
140 | mtn: beginning commit on branch 'com.selenic.test' | |
141 | mtn: committed revision 2323d4bc324e6c82628dc04d47a9fd32ad24e322 |
|
141 | mtn: committed revision 2323d4bc324e6c82628dc04d47a9fd32ad24e322 | |
142 |
|
142 | |||
143 | test directory and file move |
|
143 | test directory and file move | |
144 |
|
144 | |||
145 | $ mkdir -p dir3/d1 |
|
145 | $ mkdir -p dir3/d1 | |
146 | $ echo a > dir3/a |
|
146 | $ echo a > dir3/a | |
147 | $ mtn add dir3/a dir3/d1 |
|
147 | $ mtn add dir3/a dir3/d1 | |
148 | mtn: adding dir3 to workspace manifest |
|
148 | mtn: adding 'dir3' to workspace manifest | |
149 | mtn: adding dir3/a to workspace manifest |
|
149 | mtn: adding 'dir3/a' to workspace manifest | |
150 | mtn: adding dir3/d1 to workspace manifest |
|
150 | mtn: adding 'dir3/d1' to workspace manifest | |
151 | $ mtn ci -m dirfilemove |
|
151 | $ mtn ci -m dirfilemove | |
152 | mtn: beginning commit on branch 'com.selenic.test' |
|
152 | mtn: beginning commit on branch 'com.selenic.test' | |
153 | mtn: committed revision 47b192f720faa622f48c68d1eb075b26d405aa8b |
|
153 | mtn: committed revision 47b192f720faa622f48c68d1eb075b26d405aa8b | |
154 | $ mtn mv dir3/a dir3/d1/a |
|
154 | $ mtn mv dir3/a dir3/d1/a | |
155 | mtn: skipping dir3/d1, already accounted for in workspace |
|
155 | mtn: skipping 'dir3/d1', already accounted for in workspace | |
156 | mtn: renaming dir3/a to dir3/d1/a in workspace manifest |
|
156 | mtn: renaming 'dir3/a' to 'dir3/d1/a' in workspace manifest | |
157 | $ mtn mv dir3/d1 dir3/d2 |
|
157 | $ mtn mv dir3/d1 dir3/d2 | |
158 | mtn: skipping dir3, already accounted for in workspace |
|
158 | mtn: skipping 'dir3', already accounted for in workspace | |
159 | mtn: renaming dir3/d1 to dir3/d2 in workspace manifest |
|
159 | mtn: renaming 'dir3/d1' to 'dir3/d2' in workspace manifest | |
160 | $ mtn ci -m dirfilemove2 |
|
160 | $ mtn ci -m dirfilemove2 | |
161 | mtn: beginning commit on branch 'com.selenic.test' |
|
161 | mtn: beginning commit on branch 'com.selenic.test' | |
162 | mtn: committed revision 8b543a400d3ee7f6d4bb1835b9b9e3747c8cb632 |
|
162 | mtn: committed revision 8b543a400d3ee7f6d4bb1835b9b9e3747c8cb632 | |
163 |
|
163 | |||
164 | test directory move into another directory move |
|
164 | test directory move into another directory move | |
165 |
|
165 | |||
166 | $ mkdir dir4 |
|
166 | $ mkdir dir4 | |
167 | $ mkdir dir5 |
|
167 | $ mkdir dir5 | |
168 | $ echo a > dir4/a |
|
168 | $ echo a > dir4/a | |
169 | $ mtn add dir4/a dir5 |
|
169 | $ mtn add dir4/a dir5 | |
170 | mtn: adding dir4 to workspace manifest |
|
170 | mtn: adding 'dir4' to workspace manifest | |
171 | mtn: adding dir4/a to workspace manifest |
|
171 | mtn: adding 'dir4/a' to workspace manifest | |
172 | mtn: adding dir5 to workspace manifest |
|
172 | mtn: adding 'dir5' to workspace manifest | |
173 | $ mtn ci -m dirdirmove |
|
173 | $ mtn ci -m dirdirmove | |
174 | mtn: beginning commit on branch 'com.selenic.test' |
|
174 | mtn: beginning commit on branch 'com.selenic.test' | |
175 | mtn: committed revision 466e0b2afc7a55aa2b4ab2f57cb240bb6cd66fc7 |
|
175 | mtn: committed revision 466e0b2afc7a55aa2b4ab2f57cb240bb6cd66fc7 | |
176 | $ mtn mv dir5 dir6 |
|
176 | $ mtn mv dir5 dir6 | |
177 | mtn: renaming dir5 to dir6 in workspace manifest |
|
177 | mtn: renaming 'dir5' to 'dir6' in workspace manifest | |
178 | $ mtn mv dir4 dir6/dir4 |
|
178 | $ mtn mv dir4 dir6/dir4 | |
179 | mtn: skipping dir6, already accounted for in workspace |
|
179 | mtn: skipping 'dir6', already accounted for in workspace | |
180 | mtn: renaming dir4 to dir6/dir4 in workspace manifest |
|
180 | mtn: renaming 'dir4' to 'dir6/dir4' in workspace manifest | |
181 | $ mtn ci -m dirdirmove2 |
|
181 | $ mtn ci -m dirdirmove2 | |
182 | mtn: beginning commit on branch 'com.selenic.test' |
|
182 | mtn: beginning commit on branch 'com.selenic.test' | |
183 | mtn: committed revision 3d1f77ebad0c23a5d14911be3b670f990991b749 |
|
183 | mtn: committed revision 3d1f77ebad0c23a5d14911be3b670f990991b749 | |
184 |
|
184 | |||
185 | test diverging directory moves |
|
185 | test diverging directory moves | |
186 |
|
186 | |||
187 | $ mkdir -p dir7/dir9/dir8 |
|
187 | $ mkdir -p dir7/dir9/dir8 | |
188 | $ echo a > dir7/dir9/dir8/a |
|
188 | $ echo a > dir7/dir9/dir8/a | |
189 | $ echo b > dir7/dir9/b |
|
189 | $ echo b > dir7/dir9/b | |
190 | $ echo c > dir7/c |
|
190 | $ echo c > dir7/c | |
191 | $ mtn add -R dir7 |
|
191 | $ mtn add -R dir7 | |
192 | mtn: adding dir7 to workspace manifest |
|
192 | mtn: adding 'dir7' to workspace manifest | |
193 | mtn: adding dir7/c to workspace manifest |
|
193 | mtn: adding 'dir7/c' to workspace manifest | |
194 | mtn: adding dir7/dir9 to workspace manifest |
|
194 | mtn: adding 'dir7/dir9' to workspace manifest | |
195 | mtn: adding dir7/dir9/b to workspace manifest |
|
195 | mtn: adding 'dir7/dir9/b' to workspace manifest | |
196 | mtn: adding dir7/dir9/dir8 to workspace manifest |
|
196 | mtn: adding 'dir7/dir9/dir8' to workspace manifest | |
197 | mtn: adding dir7/dir9/dir8/a to workspace manifest |
|
197 | mtn: adding 'dir7/dir9/dir8/a' to workspace manifest | |
198 | $ mtn ci -m divergentdirmove |
|
198 | $ mtn ci -m divergentdirmove | |
199 | mtn: beginning commit on branch 'com.selenic.test' |
|
199 | mtn: beginning commit on branch 'com.selenic.test' | |
200 | mtn: committed revision 08a08511f18b428d840199b062de90d0396bc2ed |
|
200 | mtn: committed revision 08a08511f18b428d840199b062de90d0396bc2ed | |
201 | $ mtn mv dir7 dir7-2 |
|
201 | $ mtn mv dir7 dir7-2 | |
202 | mtn: renaming dir7 to dir7-2 in workspace manifest |
|
202 | mtn: renaming 'dir7' to 'dir7-2' in workspace manifest | |
203 | $ mtn mv dir7-2/dir9 dir9-2 |
|
203 | $ mtn mv dir7-2/dir9 dir9-2 | |
204 | mtn: renaming dir7-2/dir9 to dir9-2 in workspace manifest |
|
204 | mtn: renaming 'dir7-2/dir9' to 'dir9-2' in workspace manifest | |
205 | $ mtn mv dir9-2/dir8 dir8-2 |
|
205 | $ mtn mv dir9-2/dir8 dir8-2 | |
206 | mtn: renaming dir9-2/dir8 to dir8-2 in workspace manifest |
|
206 | mtn: renaming 'dir9-2/dir8' to 'dir8-2' in workspace manifest | |
207 | $ mtn ci -m divergentdirmove2 |
|
207 | $ mtn ci -m divergentdirmove2 | |
208 | mtn: beginning commit on branch 'com.selenic.test' |
|
208 | mtn: beginning commit on branch 'com.selenic.test' | |
209 | mtn: committed revision 4a736634505795f17786fffdf2c9cbf5b11df6f6 |
|
209 | mtn: committed revision 4a736634505795f17786fffdf2c9cbf5b11df6f6 | |
210 |
|
210 | |||
211 | test large file support (> 32kB) |
|
211 | test large file support (> 32kB) | |
212 |
|
212 | |||
213 | $ python -c 'for x in range(10000): print x' > large-file |
|
213 | $ python -c 'for x in range(10000): print x' > large-file | |
214 | $ $TESTDIR/md5sum.py large-file |
|
214 | $ $TESTDIR/md5sum.py large-file | |
215 | 5d6de8a95c3b6bf9e0ffb808ba5299c1 large-file |
|
215 | 5d6de8a95c3b6bf9e0ffb808ba5299c1 large-file | |
216 | $ mtn add large-file |
|
216 | $ mtn add large-file | |
217 | mtn: adding large-file to workspace manifest |
|
217 | mtn: adding 'large-file' to workspace manifest | |
218 | $ mtn ci -m largefile |
|
218 | $ mtn ci -m largefile | |
219 | mtn: beginning commit on branch 'com.selenic.test' |
|
219 | mtn: beginning commit on branch 'com.selenic.test' | |
220 | mtn: committed revision f0a20fecd10dc4392d18fe69a03f1f4919d3387b |
|
220 | mtn: committed revision f0a20fecd10dc4392d18fe69a03f1f4919d3387b | |
221 |
|
221 | |||
222 | test suspending (closing a branch) |
|
222 | test suspending (closing a branch) | |
223 |
|
223 | |||
224 | $ mtn suspend f0a20fecd10dc4392d18fe69a03f1f4919d3387b 2> /dev/null |
|
224 | $ mtn suspend f0a20fecd10dc4392d18fe69a03f1f4919d3387b 2> /dev/null | |
225 | $ cd .. |
|
225 | $ cd .. | |
226 |
|
226 | |||
227 | convert incrementally |
|
227 | convert incrementally | |
228 |
|
228 | |||
229 | $ hg convert -s mtn repo.mtn |
|
229 | $ hg convert -s mtn repo.mtn | |
230 | assuming destination repo.mtn-hg |
|
230 | assuming destination repo.mtn-hg | |
231 | scanning source... |
|
231 | scanning source... | |
232 | sorting... |
|
232 | sorting... | |
233 | converting... |
|
233 | converting... | |
234 | 12 update2 "with" quotes |
|
234 | 12 update2 "with" quotes | |
235 | 11 createdir1 |
|
235 | 11 createdir1 | |
236 | 10 movedir1 |
|
236 | 10 movedir1 | |
237 | 9 movedir |
|
237 | 9 movedir | |
238 | 8 emptydir |
|
238 | 8 emptydir | |
239 | 7 dropdirectory |
|
239 | 7 dropdirectory | |
240 | 6 dirfilemove |
|
240 | 6 dirfilemove | |
241 | 5 dirfilemove2 |
|
241 | 5 dirfilemove2 | |
242 | 4 dirdirmove |
|
242 | 4 dirdirmove | |
243 | 3 dirdirmove2 |
|
243 | 3 dirdirmove2 | |
244 | 2 divergentdirmove |
|
244 | 2 divergentdirmove | |
245 | 1 divergentdirmove2 |
|
245 | 1 divergentdirmove2 | |
246 | 0 largefile |
|
246 | 0 largefile | |
247 | $ glog() |
|
247 | $ glog() | |
248 | > { |
|
248 | > { | |
249 | > hg glog --template '{rev} "{desc|firstline}" files: {files}\n' "$@" |
|
249 | > hg glog --template '{rev} "{desc|firstline}" files: {files}\n' "$@" | |
250 | > } |
|
250 | > } | |
251 | $ cd repo.mtn-hg |
|
251 | $ cd repo.mtn-hg | |
252 | $ hg up -C |
|
252 | $ hg up -C | |
253 | 12 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
253 | 12 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
254 | $ glog |
|
254 | $ glog | |
255 | @ 14 "largefile" files: large-file |
|
255 | @ 14 "largefile" files: large-file | |
256 | | |
|
256 | | | |
257 | o 13 "divergentdirmove2" files: dir7-2/c dir7/c dir7/dir9/b dir7/dir9/dir8/a dir8-2/a dir9-2/b |
|
257 | o 13 "divergentdirmove2" files: dir7-2/c dir7/c dir7/dir9/b dir7/dir9/dir8/a dir8-2/a dir9-2/b | |
258 | | |
|
258 | | | |
259 | o 12 "divergentdirmove" files: dir7/c dir7/dir9/b dir7/dir9/dir8/a |
|
259 | o 12 "divergentdirmove" files: dir7/c dir7/dir9/b dir7/dir9/dir8/a | |
260 | | |
|
260 | | | |
261 | o 11 "dirdirmove2" files: dir4/a dir6/dir4/a |
|
261 | o 11 "dirdirmove2" files: dir4/a dir6/dir4/a | |
262 | | |
|
262 | | | |
263 | o 10 "dirdirmove" files: dir4/a |
|
263 | o 10 "dirdirmove" files: dir4/a | |
264 | | |
|
264 | | | |
265 | o 9 "dirfilemove2" files: dir3/a dir3/d2/a |
|
265 | o 9 "dirfilemove2" files: dir3/a dir3/d2/a | |
266 | | |
|
266 | | | |
267 | o 8 "dirfilemove" files: dir3/a |
|
267 | o 8 "dirfilemove" files: dir3/a | |
268 | | |
|
268 | | | |
269 | o 7 "dropdirectory" files: dir2/dir/subdir/f |
|
269 | o 7 "dropdirectory" files: dir2/dir/subdir/f | |
270 | | |
|
270 | | | |
271 | o 6 "emptydir" files: dir2/dir/subdir/f |
|
271 | o 6 "emptydir" files: dir2/dir/subdir/f | |
272 | | |
|
272 | | | |
273 | o 5 "movedir" files: dir/a dir/d dir2/a dir2/newfile |
|
273 | o 5 "movedir" files: dir/a dir/d dir2/a dir2/newfile | |
274 | | |
|
274 | | | |
275 | o 4 "movedir1" files: dir1/subdir1/file1 dir1/subdir2/file1 |
|
275 | o 4 "movedir1" files: dir1/subdir1/file1 dir1/subdir2/file1 | |
276 | | |
|
276 | | | |
277 | o 3 "createdir1" files: dir1/subdir1/file1 dir1/subdir2_other/file1 |
|
277 | o 3 "createdir1" files: dir1/subdir1/file1 dir1/subdir2_other/file1 | |
278 | | |
|
278 | | | |
279 | o 2 "update2 "with" quotes" files: bin bin2 dir/b e |
|
279 | o 2 "update2 "with" quotes" files: bin bin2 dir/b e | |
280 | | |
|
280 | | | |
281 | o 1 "update1" files: a bin c dir/a dir/b |
|
281 | o 1 "update1" files: a bin c dir/a dir/b | |
282 | | |
|
282 | | | |
283 | o 0 "initialize" files: a bin c dir/b dir/d |
|
283 | o 0 "initialize" files: a bin c dir/b dir/d | |
284 |
|
284 | |||
285 |
|
285 | |||
286 | manifest |
|
286 | manifest | |
287 |
|
287 | |||
288 | $ hg manifest |
|
288 | $ hg manifest | |
289 | bin2 |
|
289 | bin2 | |
290 | dir1/subdir2/file1 |
|
290 | dir1/subdir2/file1 | |
291 | dir1/subdir2_other/file1 |
|
291 | dir1/subdir2_other/file1 | |
292 | dir2/a |
|
292 | dir2/a | |
293 | dir2/newfile |
|
293 | dir2/newfile | |
294 | dir3/d2/a |
|
294 | dir3/d2/a | |
295 | dir6/dir4/a |
|
295 | dir6/dir4/a | |
296 | dir7-2/c |
|
296 | dir7-2/c | |
297 | dir8-2/a |
|
297 | dir8-2/a | |
298 | dir9-2/b |
|
298 | dir9-2/b | |
299 | e |
|
299 | e | |
300 | large-file |
|
300 | large-file | |
301 |
|
301 | |||
302 | contents |
|
302 | contents | |
303 |
|
303 | |||
304 | $ cat dir2/a |
|
304 | $ cat dir2/a | |
305 | a |
|
305 | a | |
306 | a |
|
306 | a | |
307 | $ test -d dir2/dir && echo 'removed dir2/dir is still there!' |
|
307 | $ test -d dir2/dir && echo 'removed dir2/dir is still there!' | |
308 | [1] |
|
308 | [1] | |
309 |
|
309 | |||
310 | file move |
|
310 | file move | |
311 |
|
311 | |||
312 | $ hg log -v -C -r 1 | grep copies |
|
312 | $ hg log -v -C -r 1 | grep copies | |
313 | copies: dir/a (a) |
|
313 | copies: dir/a (a) | |
314 |
|
314 | |||
315 | check directory move |
|
315 | check directory move | |
316 |
|
316 | |||
317 | $ hg manifest -r 4 |
|
317 | $ hg manifest -r 4 | |
318 | bin2 |
|
318 | bin2 | |
319 | dir/a |
|
319 | dir/a | |
320 | dir/d |
|
320 | dir/d | |
321 | dir1/subdir2/file1 |
|
321 | dir1/subdir2/file1 | |
322 | dir1/subdir2_other/file1 |
|
322 | dir1/subdir2_other/file1 | |
323 | e |
|
323 | e | |
324 | $ test -d dir1/subdir2 || echo 'new dir1/subdir2 does not exist!' |
|
324 | $ test -d dir1/subdir2 || echo 'new dir1/subdir2 does not exist!' | |
325 | $ test -d dir1/subdir1 && echo 'renamed dir1/subdir1 is still there!' |
|
325 | $ test -d dir1/subdir1 && echo 'renamed dir1/subdir1 is still there!' | |
326 | [1] |
|
326 | [1] | |
327 | $ hg log -v -C -r 4 | grep copies |
|
327 | $ hg log -v -C -r 4 | grep copies | |
328 | copies: dir1/subdir2/file1 (dir1/subdir1/file1) |
|
328 | copies: dir1/subdir2/file1 (dir1/subdir1/file1) | |
329 |
|
329 | |||
330 | check file remove with directory move |
|
330 | check file remove with directory move | |
331 |
|
331 | |||
332 | $ hg manifest -r 5 |
|
332 | $ hg manifest -r 5 | |
333 | bin2 |
|
333 | bin2 | |
334 | dir1/subdir2/file1 |
|
334 | dir1/subdir2/file1 | |
335 | dir1/subdir2_other/file1 |
|
335 | dir1/subdir2_other/file1 | |
336 | dir2/a |
|
336 | dir2/a | |
337 | dir2/newfile |
|
337 | dir2/newfile | |
338 | e |
|
338 | e | |
339 |
|
339 | |||
340 | check file move with directory move |
|
340 | check file move with directory move | |
341 |
|
341 | |||
342 | $ hg manifest -r 9 |
|
342 | $ hg manifest -r 9 | |
343 | bin2 |
|
343 | bin2 | |
344 | dir1/subdir2/file1 |
|
344 | dir1/subdir2/file1 | |
345 | dir1/subdir2_other/file1 |
|
345 | dir1/subdir2_other/file1 | |
346 | dir2/a |
|
346 | dir2/a | |
347 | dir2/newfile |
|
347 | dir2/newfile | |
348 | dir3/d2/a |
|
348 | dir3/d2/a | |
349 | e |
|
349 | e | |
350 |
|
350 | |||
351 | check file directory directory move |
|
351 | check file directory directory move | |
352 |
|
352 | |||
353 | $ hg manifest -r 11 |
|
353 | $ hg manifest -r 11 | |
354 | bin2 |
|
354 | bin2 | |
355 | dir1/subdir2/file1 |
|
355 | dir1/subdir2/file1 | |
356 | dir1/subdir2_other/file1 |
|
356 | dir1/subdir2_other/file1 | |
357 | dir2/a |
|
357 | dir2/a | |
358 | dir2/newfile |
|
358 | dir2/newfile | |
359 | dir3/d2/a |
|
359 | dir3/d2/a | |
360 | dir6/dir4/a |
|
360 | dir6/dir4/a | |
361 | e |
|
361 | e | |
362 |
|
362 | |||
363 | check divergent directory moves |
|
363 | check divergent directory moves | |
364 |
|
364 | |||
365 | $ hg manifest -r 13 |
|
365 | $ hg manifest -r 13 | |
366 | bin2 |
|
366 | bin2 | |
367 | dir1/subdir2/file1 |
|
367 | dir1/subdir2/file1 | |
368 | dir1/subdir2_other/file1 |
|
368 | dir1/subdir2_other/file1 | |
369 | dir2/a |
|
369 | dir2/a | |
370 | dir2/newfile |
|
370 | dir2/newfile | |
371 | dir3/d2/a |
|
371 | dir3/d2/a | |
372 | dir6/dir4/a |
|
372 | dir6/dir4/a | |
373 | dir7-2/c |
|
373 | dir7-2/c | |
374 | dir8-2/a |
|
374 | dir8-2/a | |
375 | dir9-2/b |
|
375 | dir9-2/b | |
376 | e |
|
376 | e | |
377 |
|
377 | |||
378 | test large file support (> 32kB) |
|
378 | test large file support (> 32kB) | |
379 |
|
379 | |||
380 | $ $TESTDIR/md5sum.py large-file |
|
380 | $ $TESTDIR/md5sum.py large-file | |
381 | 5d6de8a95c3b6bf9e0ffb808ba5299c1 large-file |
|
381 | 5d6de8a95c3b6bf9e0ffb808ba5299c1 large-file | |
382 |
|
382 | |||
383 | check branch closing |
|
383 | check branch closing | |
384 |
|
384 | |||
385 | $ hg branches -a |
|
385 | $ hg branches -a | |
386 | $ hg branches -c |
|
386 | $ hg branches -c | |
387 | com.selenic.test 14:* (closed) (glob) |
|
387 | com.selenic.test 14:* (closed) (glob) | |
388 |
|
388 |
General Comments 0
You need to be logged in to leave comments.
Login now