Mercurial > evolve
comparison tests/test-namespaces.t @ 6656:d3668c704d40 stable
topic: use the appropriate functions to change topic and tns on wdir update
This way we don't write the default topic/tns values into the files. It's safer
this way if any of the default values change at some point (as it did for topic
namespaces).
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 18 Jan 2024 14:32:41 -0300 |
parents | 94bf2f307b75 |
children | 1c998ed77597 |
comparison
equal
deleted
inserted
replaced
6655:81fe0a498447 | 6656:d3668c704d40 |
---|---|
92 | 92 |
93 $ hg up null | 93 $ hg up null |
94 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 94 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
95 $ hg debug-topic-namespace | 95 $ hg debug-topic-namespace |
96 none | 96 none |
97 $ test -f .hg/topic-namespace | |
98 [1] | |
97 $ hg topics | 99 $ hg topics |
98 feature (1 changesets) | 100 feature (1 changesets) |
101 $ test -f .hg/topic | |
102 [1] | |
99 $ hg up 0 | 103 $ hg up 0 |
100 switching to topic-namespace alice | 104 switching to topic-namespace alice |
101 switching to topic feature | 105 switching to topic feature |
102 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 106 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
103 $ hg debug-topic-namespace | 107 $ hg debug-topic-namespace |
104 alice | 108 alice |
105 $ hg topics | 109 $ hg topics |
106 * feature (1 changesets) | 110 * feature (1 changesets) |
111 $ cat .hg/topic | |
112 feature (no-eol) | |
107 | 113 |
108 Updating to a topic namespace is not supported | 114 Updating to a topic namespace is not supported |
109 | 115 |
110 $ hg up alice | 116 $ hg up alice |
111 abort: unknown revision 'alice' | 117 abort: unknown revision 'alice' |