Mercurial > hg
annotate tests/test-clone-stream-format.t @ 48598:a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
They are different kind of requirements, the one which impact the data storage
and are relevant to the files being streamed and the one which does not. For
example some requirements are only relevant to the working copy, like sparse, or
dirstate-v2.
Since they are irrelevant to the content being streamed, they do not prevent the
receiving side to use streaming clone and mercurial skip adverting them over
the wire and, ideally, within the bundle.
In addition, this let the client decide to use whichever format it desire for
the part that does not affect the store itself. So the configuration related to
these format are used as normal when doing a streaming clone.
In practice, the feature was not really tested and is badly broken with bundle-2,
since the requirements are not filtered out from the stream bundle.
So we start with adding simple tests as a good base before the fix and adjust
the feature.
Differential Revision: https://phab.mercurial-scm.org/D12029
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 17 Jan 2022 18:51:47 +0100 |
parents | |
children | a3cf460a6b1b |
rev | line source |
---|---|
48598
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
1 This file contains tests case that deal with format change accross stream clone |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
2 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
3 #require serve no-reposimplestore no-chg |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
4 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
5 #testcases stream-legacy |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
6 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
7 (the #stream-bundle2 variant is actually buggy for the moment) |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
8 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
9 #if stream-legacy |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
10 $ cat << EOF >> $HGRCPATH |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
11 > [server] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
12 > bundle2.stream = no |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
13 > EOF |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
14 #endif |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
15 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
16 Initialize repository |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
17 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
18 $ hg init server |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
19 $ cd server |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
20 $ sh $TESTDIR/testlib/stream_clone_setup.sh |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
21 adding 00changelog-ab349180a0405010.nd |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
22 adding 00changelog.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
23 adding 00changelog.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
24 adding 00changelog.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
25 adding 00manifest.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
26 adding 00manifest.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
27 adding container/isam-build-centos7/bazel-coverage-generator-sandboxfs-compatibility-0758e3e4f6057904d44399bd666faba9e7f40686.patch |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
28 adding data/foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
29 adding data/foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
30 adding data/foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
31 adding data/undo.babar |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
32 adding data/undo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
33 adding data/undo.foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
34 adding data/undo.foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
35 adding data/undo.foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
36 adding data/undo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
37 adding data/undo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
38 adding data/undo.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
39 adding foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
40 adding foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
41 adding foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
42 adding meta/foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
43 adding meta/foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
44 adding meta/foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
45 adding meta/undo.babar |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
46 adding meta/undo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
47 adding meta/undo.foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
48 adding meta/undo.foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
49 adding meta/undo.foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
50 adding meta/undo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
51 adding meta/undo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
52 adding meta/undo.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
53 adding savanah/foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
54 adding savanah/foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
55 adding savanah/foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
56 adding savanah/undo.babar |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
57 adding savanah/undo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
58 adding savanah/undo.foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
59 adding savanah/undo.foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
60 adding savanah/undo.foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
61 adding savanah/undo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
62 adding savanah/undo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
63 adding savanah/undo.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
64 adding store/C\xc3\xa9lesteVille_is_a_Capital_City (esc) |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
65 adding store/foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
66 adding store/foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
67 adding store/foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
68 adding store/undo.babar |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
69 adding store/undo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
70 adding store/undo.foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
71 adding store/undo.foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
72 adding store/undo.foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
73 adding store/undo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
74 adding store/undo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
75 adding store/undo.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
76 adding undo.babar |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
77 adding undo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
78 adding undo.foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
79 adding undo.foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
80 adding undo.foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
81 adding undo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
82 adding undo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
83 adding undo.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
84 $ cd .. |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
85 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
86 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
87 Test streaming from/to repository without a store: |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
88 ================================================== |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
89 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
90 $ hg clone --pull --config format.usestore=no server server-no-store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
91 requesting all changes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
92 adding changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
93 adding manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
94 adding file changes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
95 added 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
96 new changesets 96ee1d7354c4:5223b5e3265f |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
97 updating to branch default |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
98 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
99 $ hg verify -R server-no-store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
100 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
101 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
102 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
103 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
104 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
105 $ hg -R server serve -p $HGPORT -d --pid-file=hg-1.pid --error errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
106 $ cat hg-1.pid > $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
107 $ hg -R server-no-store serve -p $HGPORT2 -d --pid-file=hg-2.pid --error errors-2.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
108 $ cat hg-2.pid >> $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
109 $ hg debugrequires -R server | grep store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
110 store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
111 $ hg debugrequires -R server-no-store | grep store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
112 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
113 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
114 store → no-store cloning |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
115 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
116 $ hg clone --quiet --stream -U http://localhost:$HGPORT clone-remove-store --config format.usestore=no |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
117 $ cat errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
118 $ hg -R clone-remove-store verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
119 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
120 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
121 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
122 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
123 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
124 $ hg debugrequires -R clone-remove-store | grep store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
125 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
126 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
127 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
128 no-store → store cloning |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
129 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
130 $ hg clone --quiet --stream -U http://localhost:$HGPORT2 clone-add-store --config format.usestore=yes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
131 $ cat errors-2.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
132 $ hg -R clone-add-store verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
133 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
134 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
135 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
136 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
137 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
138 $ hg debugrequires -R clone-add-store | grep store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
139 store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
140 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
141 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
142 $ killdaemons.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
143 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
144 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
145 Test streaming from/to repository without a fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
146 =================================================== |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
147 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
148 $ rm hg-*.pid errors-*.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
149 $ hg clone --pull --config format.usefncache=no server server-no-fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
150 requesting all changes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
151 adding changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
152 adding manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
153 adding file changes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
154 added 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
155 new changesets 96ee1d7354c4:5223b5e3265f |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
156 updating to branch default |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
157 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
158 $ hg verify -R server-no-fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
159 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
160 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
161 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
162 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
163 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
164 $ hg -R server serve -p $HGPORT -d --pid-file=hg-1.pid --error errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
165 $ cat hg-1.pid > $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
166 $ hg -R server-no-fncache serve -p $HGPORT2 -d --pid-file=hg-2.pid --error errors-2.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
167 $ cat hg-2.pid >> $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
168 $ hg debugrequires -R server | grep fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
169 fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
170 $ hg debugrequires -R server-no-fncache | grep fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
171 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
172 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
173 fncache → no-fncache cloning |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
174 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
175 $ hg clone --quiet --stream -U http://localhost:$HGPORT clone-remove-fncache --config format.usefncache=no |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
176 $ cat errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
177 $ hg -R clone-remove-fncache verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
178 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
179 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
180 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
181 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
182 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
183 $ hg debugrequires -R clone-remove-fncache | grep fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
184 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
185 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
186 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
187 no-fncache → fncache cloning |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
188 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
189 $ hg clone --quiet --stream -U http://localhost:$HGPORT2 clone-add-fncache --config format.usefncache=yes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
190 $ cat errors-2.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
191 $ hg -R clone-add-fncache verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
192 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
193 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
194 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
195 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
196 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
197 $ hg debugrequires -R clone-add-fncache | grep fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
198 fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
199 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
200 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
201 $ killdaemons.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
202 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
203 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
204 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
205 Test streaming from/to repository without a dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
206 =================================================== |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
207 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
208 $ rm hg-*.pid errors-*.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
209 $ hg clone --pull --config format.dotencode=no server server-no-dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
210 requesting all changes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
211 adding changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
212 adding manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
213 adding file changes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
214 added 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
215 new changesets 96ee1d7354c4:5223b5e3265f |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
216 updating to branch default |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
217 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
218 $ hg verify -R server-no-dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
219 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
220 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
221 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
222 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
223 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
224 $ hg -R server serve -p $HGPORT -d --pid-file=hg-1.pid --error errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
225 $ cat hg-1.pid > $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
226 $ hg -R server-no-dotencode serve -p $HGPORT2 -d --pid-file=hg-2.pid --error errors-2.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
227 $ cat hg-2.pid >> $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
228 $ hg debugrequires -R server | grep dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
229 dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
230 $ hg debugrequires -R server-no-dotencode | grep dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
231 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
232 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
233 dotencode → no-dotencode cloning |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
234 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
235 $ hg clone --quiet --stream -U http://localhost:$HGPORT clone-remove-dotencode --config format.dotencode=no |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
236 $ cat errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
237 $ hg -R clone-remove-dotencode verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
238 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
239 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
240 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
241 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
242 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
243 $ hg debugrequires -R clone-remove-dotencode | grep dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
244 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
245 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
246 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
247 no-dotencode → dotencode cloning |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
248 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
249 $ hg clone --quiet --stream -U http://localhost:$HGPORT2 clone-add-dotencode --config format.dotencode=yes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
250 $ cat errors-2.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
251 $ hg -R clone-add-dotencode verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
252 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
253 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
254 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
255 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
256 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
257 $ hg debugrequires -R clone-add-dotencode | grep dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
258 dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
259 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
260 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
261 $ killdaemons.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
262 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
263 Cloning from a share |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
264 -------------------- |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
265 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
266 We should be able to clone from a "share" repository, it will use the source store for streaming. |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
267 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
268 The resulting clone should not use share. |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
269 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
270 $ rm hg-*.pid errors-*.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
271 $ hg share --config extensions.share= server server-share -U |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
272 $ hg -R server-share serve -p $HGPORT -d --pid-file=hg-1.pid --error errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
273 $ cat hg-1.pid > $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
274 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
275 $ hg clone --quiet --stream -U http://localhost:$HGPORT clone-from-share |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
276 $ hg -R clone-from-share verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
277 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
278 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
279 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
280 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
281 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
282 $ hg debugrequires -R clone-from-share | grep share |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
283 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
284 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
285 $ killdaemons.py |