Mercurial > evolve
comparison tests/test-topic-flow-publish-bare.t @ 5927:0b7328d7503a stable
tests: add simple auto-publish checks alongside publish-bare-branch checks
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 19 May 2021 09:59:53 +0800 |
parents | af9f40236037 |
children | 16d36635f859 |
comparison
equal
deleted
inserted
replaced
5919:1a8e86053adb | 5927:0b7328d7503a |
---|---|
2 Test workflow options | 2 Test workflow options |
3 ===================== | 3 ===================== |
4 | 4 |
5 $ . "$TESTDIR/testlib/topic_setup.sh" | 5 $ . "$TESTDIR/testlib/topic_setup.sh" |
6 $ . "$TESTDIR/testlib/common.sh" | 6 $ . "$TESTDIR/testlib/common.sh" |
7 | |
8 Also testing auto-publish config option with this publishing mode | |
9 | |
10 $ cat << EOF >> "$HGRCPATH" | |
11 > [experimental] | |
12 > auto-publish = warn | |
13 > EOF | |
7 | 14 |
8 Publishing of bare branch | 15 Publishing of bare branch |
9 ========================= | 16 ========================= |
10 | 17 |
11 $ hg init bare-branch-server | 18 $ hg init bare-branch-server |
30 | 37 |
31 $ cd bare-client | 38 $ cd bare-client |
32 $ mkcommit c_dB0 | 39 $ mkcommit c_dB0 |
33 $ hg push | 40 $ hg push |
34 pushing to $TESTTMP/bare-branch-server | 41 pushing to $TESTTMP/bare-branch-server |
42 1 changesets about to be published | |
35 searching for changes | 43 searching for changes |
36 adding changesets | 44 adding changesets |
37 adding manifests | 45 adding manifests |
38 adding file changes | 46 adding file changes |
39 added 1 changesets with 1 changes to 1 files | 47 added 1 changesets with 1 changes to 1 files |
58 $ mkcommit c_dD0 | 66 $ mkcommit c_dD0 |
59 created new head | 67 created new head |
60 (consider using topic for lightweight branches. See 'hg help topic') | 68 (consider using topic for lightweight branches. See 'hg help topic') |
61 $ hg push -f | 69 $ hg push -f |
62 pushing to $TESTTMP/bare-branch-server | 70 pushing to $TESTTMP/bare-branch-server |
71 2 changesets about to be published | |
63 searching for changes | 72 searching for changes |
64 adding changesets | 73 adding changesets |
65 adding manifests | 74 adding manifests |
66 adding file changes | 75 adding file changes |
67 added 2 changesets with 2 changes to 2 files (+2 heads) | 76 added 2 changesets with 2 changes to 2 files (+2 heads) |
86 marked working directory as branch branchA | 95 marked working directory as branch branchA |
87 (branches are permanent and global, did you want a bookmark?) | 96 (branches are permanent and global, did you want a bookmark?) |
88 $ mkcommit c_aE0 | 97 $ mkcommit c_aE0 |
89 $ hg push --new-branch | 98 $ hg push --new-branch |
90 pushing to $TESTTMP/bare-branch-server | 99 pushing to $TESTTMP/bare-branch-server |
100 1 changesets about to be published | |
91 searching for changes | 101 searching for changes |
92 adding changesets | 102 adding changesets |
93 adding manifests | 103 adding manifests |
94 adding file changes | 104 adding file changes |
95 added 1 changesets with 1 changes to 1 files (+1 heads) | 105 added 1 changesets with 1 changes to 1 files (+1 heads) |
151 $ mkcommit c_dH0 | 161 $ mkcommit c_dH0 |
152 active topic 'bar' grew its first changeset | 162 active topic 'bar' grew its first changeset |
153 (see 'hg help topics' for more information) | 163 (see 'hg help topics' for more information) |
154 $ hg push | 164 $ hg push |
155 pushing to $TESTTMP/bare-branch-server | 165 pushing to $TESTTMP/bare-branch-server |
166 1 changesets about to be published | |
156 searching for changes | 167 searching for changes |
157 adding changesets | 168 adding changesets |
158 adding manifests | 169 adding manifests |
159 adding file changes | 170 adding file changes |
160 added 2 changesets with 2 changes to 2 files | 171 added 2 changesets with 2 changes to 2 files |
191 $ hg update 'desc("c_aE0")' | 202 $ hg update 'desc("c_aE0")' |
192 1 files updated, 0 files merged, 5 files removed, 0 files unresolved | 203 1 files updated, 0 files merged, 5 files removed, 0 files unresolved |
193 $ mkcommit c_aK0 | 204 $ mkcommit c_aK0 |
194 $ hg push | 205 $ hg push |
195 pushing to $TESTTMP/bare-branch-server | 206 pushing to $TESTTMP/bare-branch-server |
207 2 changesets about to be published | |
196 searching for changes | 208 searching for changes |
197 adding changesets | 209 adding changesets |
198 adding manifests | 210 adding manifests |
199 adding file changes | 211 adding file changes |
200 added 3 changesets with 3 changes to 3 files | 212 added 3 changesets with 3 changes to 3 files |
233 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 245 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
234 (branch merge, don't forget to commit) | 246 (branch merge, don't forget to commit) |
235 $ hg ci -m 'c_dL0' | 247 $ hg ci -m 'c_dL0' |
236 $ hg push | 248 $ hg push |
237 pushing to $TESTTMP/bare-branch-server | 249 pushing to $TESTTMP/bare-branch-server |
250 2 changesets about to be published | |
238 searching for changes | 251 searching for changes |
239 adding changesets | 252 adding changesets |
240 adding manifests | 253 adding manifests |
241 adding file changes | 254 adding file changes |
242 added 1 changesets with 0 changes to 0 files (-1 heads) | 255 added 1 changesets with 0 changes to 0 files (-1 heads) |