comparison tests/test-push.t @ 30279:a8d2071c3373

test: rename 'test-push-r.t' to 'test-push.t' We do not have a simple test for 'hg push' but we have multiple tiny tests for various aspect of it. We'll unify them into a single file, and we start with 'test-push-r.t'. The code is unchanged but we renamed the repository used to avoid collision with other tests we'll import in coming changesets. Test timing for the record: start end cuser csys real Test 1.850 2.640 0.650 0.090 0.790 test-push-validation.t 2.640 3.520 0.760 0.090 0.880 test-push-hook-lock.t 0.000 1.850 1.560 0.210 1.850 test-push-r.t
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 03 Nov 2016 04:58:46 +0100
parents tests/test-push-r.t@24ea47037186
children 0269ab4f4371
comparison
equal deleted inserted replaced
30278:24ea47037186 30279:a8d2071c3373
1 ==================================
2 Basic testing for the push command
3 ==================================
4
5 Testing of the '--rev' flag
6 ===========================
7
8 $ hg init test-revflag
9 $ hg -R test-revflag unbundle "$TESTDIR/bundles/remote.hg"
10 adding changesets
11 adding manifests
12 adding file changes
13 added 9 changesets with 7 changes to 4 files (+1 heads)
14 (run 'hg heads' to see heads, 'hg merge' to merge)
15
16 $ for i in 0 1 2 3 4 5 6 7 8; do
17 > echo
18 > hg init test-revflag-"$i"
19 > hg -R test-revflag push -r "$i" test-revflag-"$i"
20 > hg -R test-revflag-"$i" verify
21 > done
22
23 pushing to test-revflag-0
24 searching for changes
25 adding changesets
26 adding manifests
27 adding file changes
28 added 1 changesets with 1 changes to 1 files
29 checking changesets
30 checking manifests
31 crosschecking files in changesets and manifests
32 checking files
33 1 files, 1 changesets, 1 total revisions
34
35 pushing to test-revflag-1
36 searching for changes
37 adding changesets
38 adding manifests
39 adding file changes
40 added 2 changesets with 2 changes to 1 files
41 checking changesets
42 checking manifests
43 crosschecking files in changesets and manifests
44 checking files
45 1 files, 2 changesets, 2 total revisions
46
47 pushing to test-revflag-2
48 searching for changes
49 adding changesets
50 adding manifests
51 adding file changes
52 added 3 changesets with 3 changes to 1 files
53 checking changesets
54 checking manifests
55 crosschecking files in changesets and manifests
56 checking files
57 1 files, 3 changesets, 3 total revisions
58
59 pushing to test-revflag-3
60 searching for changes
61 adding changesets
62 adding manifests
63 adding file changes
64 added 4 changesets with 4 changes to 1 files
65 checking changesets
66 checking manifests
67 crosschecking files in changesets and manifests
68 checking files
69 1 files, 4 changesets, 4 total revisions
70
71 pushing to test-revflag-4
72 searching for changes
73 adding changesets
74 adding manifests
75 adding file changes
76 added 2 changesets with 2 changes to 1 files
77 checking changesets
78 checking manifests
79 crosschecking files in changesets and manifests
80 checking files
81 1 files, 2 changesets, 2 total revisions
82
83 pushing to test-revflag-5
84 searching for changes
85 adding changesets
86 adding manifests
87 adding file changes
88 added 3 changesets with 3 changes to 1 files
89 checking changesets
90 checking manifests
91 crosschecking files in changesets and manifests
92 checking files
93 1 files, 3 changesets, 3 total revisions
94
95 pushing to test-revflag-6
96 searching for changes
97 adding changesets
98 adding manifests
99 adding file changes
100 added 4 changesets with 5 changes to 2 files
101 checking changesets
102 checking manifests
103 crosschecking files in changesets and manifests
104 checking files
105 2 files, 4 changesets, 5 total revisions
106
107 pushing to test-revflag-7
108 searching for changes
109 adding changesets
110 adding manifests
111 adding file changes
112 added 5 changesets with 6 changes to 3 files
113 checking changesets
114 checking manifests
115 crosschecking files in changesets and manifests
116 checking files
117 3 files, 5 changesets, 6 total revisions
118
119 pushing to test-revflag-8
120 searching for changes
121 adding changesets
122 adding manifests
123 adding file changes
124 added 5 changesets with 5 changes to 2 files
125 checking changesets
126 checking manifests
127 crosschecking files in changesets and manifests
128 checking files
129 2 files, 5 changesets, 5 total revisions
130
131 $ cd test-revflag-8
132
133 $ hg pull ../test-revflag-7
134 pulling from ../test-revflag-7
135 searching for changes
136 adding changesets
137 adding manifests
138 adding file changes
139 added 4 changesets with 2 changes to 3 files (+1 heads)
140 (run 'hg heads' to see heads, 'hg merge' to merge)
141
142 $ hg verify
143 checking changesets
144 checking manifests
145 crosschecking files in changesets and manifests
146 checking files
147 4 files, 9 changesets, 7 total revisions
148
149 $ cd ..