Mercurial > hg
comparison tests/test-http.t @ 34661:eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Upon pull or unbundle, we display a message with the range of new revisions
fetched. This revision range could readily be used after a pull to look out
what's new with 'hg log'. The algorithm takes care of filtering "obsolete"
revisions that might be present in transaction's "changes" but should not be
displayed to the end user.
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Thu, 12 Oct 2017 09:39:50 +0200 |
parents | a6d95a8b7243 |
children | 62e10bf001a9 |
comparison
equal
deleted
inserted
replaced
34660:d00ec62d156f | 34661:eb586ed5d8ce |
---|---|
53 requesting all changes | 53 requesting all changes |
54 adding changesets | 54 adding changesets |
55 adding manifests | 55 adding manifests |
56 adding file changes | 56 adding file changes |
57 added 1 changesets with 4 changes to 4 files | 57 added 1 changesets with 4 changes to 4 files |
58 new changesets 8b6053c928fe | |
58 updating to branch default | 59 updating to branch default |
59 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | 60 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
60 | 61 |
61 try to clone via stream but missing requirements, so should use pull instead | 62 try to clone via stream but missing requirements, so should use pull instead |
62 | 63 |
72 requesting all changes | 73 requesting all changes |
73 adding changesets | 74 adding changesets |
74 adding manifests | 75 adding manifests |
75 adding file changes | 76 adding file changes |
76 added 1 changesets with 4 changes to 4 files | 77 added 1 changesets with 4 changes to 4 files |
78 new changesets 8b6053c928fe | |
77 updating to branch default | 79 updating to branch default |
78 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | 80 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
79 | 81 |
80 clone via pull | 82 clone via pull |
81 | 83 |
83 requesting all changes | 85 requesting all changes |
84 adding changesets | 86 adding changesets |
85 adding manifests | 87 adding manifests |
86 adding file changes | 88 adding file changes |
87 added 1 changesets with 4 changes to 4 files | 89 added 1 changesets with 4 changes to 4 files |
90 new changesets 8b6053c928fe | |
88 updating to branch default | 91 updating to branch default |
89 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | 92 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
90 $ hg verify -R copy-pull | 93 $ hg verify -R copy-pull |
91 checking changesets | 94 checking changesets |
92 checking manifests | 95 checking manifests |
105 requesting all changes | 108 requesting all changes |
106 adding changesets | 109 adding changesets |
107 adding manifests | 110 adding manifests |
108 adding file changes | 111 adding file changes |
109 added 2 changesets with 5 changes to 5 files | 112 added 2 changesets with 5 changes to 5 files |
113 new changesets 8b6053c928fe:5fed3813f7f5 | |
110 updating to branch default | 114 updating to branch default |
111 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | 115 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
112 $ hg log -r . -R updated | 116 $ hg log -r . -R updated |
113 changeset: 0:8b6053c928fe | 117 changeset: 0:8b6053c928fe |
114 user: test | 118 user: test |
122 $ hg clone http://localhost:$HGPORT1/ --rev 0 partial | 126 $ hg clone http://localhost:$HGPORT1/ --rev 0 partial |
123 adding changesets | 127 adding changesets |
124 adding manifests | 128 adding manifests |
125 adding file changes | 129 adding file changes |
126 added 1 changesets with 4 changes to 4 files | 130 added 1 changesets with 4 changes to 4 files |
131 new changesets 8b6053c928fe | |
127 updating to branch default | 132 updating to branch default |
128 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | 133 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
129 $ cd partial | 134 $ cd partial |
130 $ touch LOCAL | 135 $ touch LOCAL |
131 $ hg ci -qAm LOCAL | 136 $ hg ci -qAm LOCAL |
147 searching for changes | 152 searching for changes |
148 adding changesets | 153 adding changesets |
149 adding manifests | 154 adding manifests |
150 adding file changes | 155 adding file changes |
151 added 1 changesets with 1 changes to 1 files | 156 added 1 changesets with 1 changes to 1 files |
157 new changesets 5fed3813f7f5 | |
152 changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=http://localhost:$HGPORT1/ | 158 changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=http://localhost:$HGPORT1/ |
153 (run 'hg update' to get a working copy) | 159 (run 'hg update' to get a working copy) |
154 $ cd .. | 160 $ cd .. |
155 | 161 |
156 clone from invalid URL | 162 clone from invalid URL |
225 requesting all changes | 231 requesting all changes |
226 adding changesets | 232 adding changesets |
227 adding manifests | 233 adding manifests |
228 adding file changes | 234 adding file changes |
229 added 2 changesets with 5 changes to 5 files | 235 added 2 changesets with 5 changes to 5 files |
236 new changesets 8b6053c928fe:5fed3813f7f5 | |
230 updating to branch default | 237 updating to branch default |
231 5 files updated, 0 files merged, 0 files removed, 0 files unresolved | 238 5 files updated, 0 files merged, 0 files removed, 0 files unresolved |
232 | 239 |
233 $ hg id http://user2@localhost:$HGPORT2/ | 240 $ hg id http://user2@localhost:$HGPORT2/ |
234 abort: http authorization required for http://localhost:$HGPORT2/ | 241 abort: http authorization required for http://localhost:$HGPORT2/ |
323 requesting all changes | 330 requesting all changes |
324 adding changesets | 331 adding changesets |
325 adding manifests | 332 adding manifests |
326 adding file changes | 333 adding file changes |
327 added 3 changesets with 7 changes to 7 files | 334 added 3 changesets with 7 changes to 7 files |
335 new changesets 8b6053c928fe:56f9bc90cce6 | |
328 updating to branch default | 336 updating to branch default |
329 abort: HTTP Error 404: Not Found | 337 abort: HTTP Error 404: Not Found |
330 [255] | 338 [255] |
331 $ hg clone http://localhost:$HGPORT/ slash-clone | 339 $ hg clone http://localhost:$HGPORT/ slash-clone |
332 requesting all changes | 340 requesting all changes |
333 adding changesets | 341 adding changesets |
334 adding manifests | 342 adding manifests |
335 adding file changes | 343 adding file changes |
336 added 3 changesets with 7 changes to 7 files | 344 added 3 changesets with 7 changes to 7 files |
345 new changesets 8b6053c928fe:56f9bc90cce6 | |
337 updating to branch default | 346 updating to branch default |
338 abort: HTTP Error 404: Not Found | 347 abort: HTTP Error 404: Not Found |
339 [255] | 348 [255] |
340 | 349 |
341 check error log | 350 check error log |
379 $ hg clone http://localhost:$HGPORT1 --rev 0 test-partial-clone | 388 $ hg clone http://localhost:$HGPORT1 --rev 0 test-partial-clone |
380 adding changesets | 389 adding changesets |
381 adding manifests | 390 adding manifests |
382 adding file changes | 391 adding file changes |
383 added 1 changesets with 4 changes to 4 files | 392 added 1 changesets with 4 changes to 4 files |
393 new changesets 8b6053c928fe | |
384 updating to branch default | 394 updating to branch default |
385 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | 395 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
386 $ hg pull -R test-partial-clone | 396 $ hg pull -R test-partial-clone |
387 pulling from http://localhost:$HGPORT1/ | 397 pulling from http://localhost:$HGPORT1/ |
388 searching for changes | 398 searching for changes |
389 adding changesets | 399 adding changesets |
390 adding manifests | 400 adding manifests |
391 adding file changes | 401 adding file changes |
392 added 2 changesets with 3 changes to 3 files | 402 added 2 changesets with 3 changes to 3 files |
403 new changesets 5fed3813f7f5:56f9bc90cce6 | |
393 (run 'hg update' to get a working copy) | 404 (run 'hg update' to get a working copy) |
394 | 405 |
395 corrupt cookies file should yield a warning | 406 corrupt cookies file should yield a warning |
396 | 407 |
397 $ cat > $TESTTMP/cookies.txt << EOF | 408 $ cat > $TESTTMP/cookies.txt << EOF |