Mercurial > evolve
comparison tests/test-namespaces.t @ 6657:1c998ed77597 stable
topic: remove .hg/topic-namespace file if it has the default value
See the comment in the test file for the rationale behind this patch.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 19 Jan 2024 14:29:35 -0300 |
parents | d3668c704d40 |
children | 5e6fa2dd796a |
comparison
equal
deleted
inserted
replaced
6656:d3668c704d40 | 6657:1c998ed77597 |
---|---|
85 $ hg log -r . -T '{rev}: {fqbn}\n' | 85 $ hg log -r . -T '{rev}: {fqbn}\n' |
86 0: stable//alice/feature | 86 0: stable//alice/feature |
87 | 87 |
88 $ hg branches | 88 $ hg branches |
89 stable//alice/feature 0:69c7dbf6acd1 | 89 stable//alice/feature 0:69c7dbf6acd1 |
90 | |
91 Removing topic namespace file if it contains the default value | |
92 | |
93 The default value changed from b'default' to b'none' in 11.1.0, this is a | |
94 safeguard against accidentally putting the new default tns value into commit | |
95 extras with an old version of topic extension | |
96 | |
97 $ printf 'none' > .hg/topic-namespace | |
98 $ test -f .hg/topic-namespace | |
99 $ hg ci -m '' | |
100 nothing changed | |
101 [1] | |
102 $ test -f .hg/topic-namespace | |
103 [1] | |
90 | 104 |
91 Updating to a revision with a namespace should activate it | 105 Updating to a revision with a namespace should activate it |
92 | 106 |
93 $ hg up null | 107 $ hg up null |
94 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 108 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |