annotate tests/test-topic-issue6841.t @ 6578:b45615a5301b mercurial-6.3

test-compat: merge mercurial-6.4 into mercurial-6.3
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 13 Oct 2023 16:12:40 -0300
parents 30d0d3d92c8d
children 6d22e9a596c4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6546
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
1 New clones shouldn't have topics in any on-disk caches (issue6841)
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
2 https://bz.mercurial-scm.org/show_bug.cgi?id=6841
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
3
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
4 $ . "$TESTDIR/testlib/common.sh"
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
5
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
6 $ cat >> $HGRCPATH << EOF
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
7 > [extensions]
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
8 > topic =
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
9 > [phases]
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
10 > publish = no
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
11 > [ui]
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
12 > ssh = "$PYTHON" "$RUNTESTDIR/dummyssh"
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
13 > EOF
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
14
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
15 $ hg init orig
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
16 $ hg clone orig publishing -q
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
17 $ cat >> publishing/.hg/hgrc << EOF
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
18 > [phases]
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
19 > publish = yes
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
20 > EOF
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
21
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
22 $ cd orig
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
23 $ mkcommit ROOT
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
24 $ hg push ../publishing
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
25 pushing to ../publishing
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
26 searching for changes
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
27 adding changesets
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
28 adding manifests
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
29 adding file changes
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
30 added 1 changesets with 1 changes to 1 files
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
31
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
32 $ echo foo > foo
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
33 $ hg topic topic-foo
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
34 marked working directory as topic: topic-foo
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
35 $ hg ci -qAm foo
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
36
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
37 $ cd ..
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
38
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
39 cloning via ssh to use wire protocol
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
40
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
41 $ hg clone ssh://user@dummy/orig new-clone -q
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
42 $ cd new-clone
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
43
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
44 on-disk caches are using bare branch names only
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
45
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
46 $ f -H .hg/cache/rbc-names-v1
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
47 .hg/cache/rbc-names-v1:
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
48 0000: 64 65 66 61 75 6c 74 |default|
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
49 $ grep topic-foo .hg/cache/*
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
50 [1]
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
51
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
52 and pushing works fine
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
53
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
54 $ hg push ssh://user@dummy/publishing
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
55 pushing to ssh://user@dummy/publishing
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
56 searching for changes
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
57 remote: adding changesets
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
58 remote: adding manifests
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
59 remote: adding file changes
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
60 remote: added 1 changesets with 1 changes to 1 files
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
61
30d0d3d92c8d topic: properly process revbranchcache before sending it to peers (issue6841)
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
62 $ cd ..