Mercurial > evolve
diff 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 |
line wrap: on
line diff
--- a/tests/test-namespaces.t Thu Jan 18 14:32:41 2024 -0300 +++ b/tests/test-namespaces.t Fri Jan 19 14:29:35 2024 -0300 @@ -88,6 +88,20 @@ $ hg branches stable//alice/feature 0:69c7dbf6acd1 +Removing topic namespace file if it contains the default value + +The default value changed from b'default' to b'none' in 11.1.0, this is a +safeguard against accidentally putting the new default tns value into commit +extras with an old version of topic extension + + $ printf 'none' > .hg/topic-namespace + $ test -f .hg/topic-namespace + $ hg ci -m '' + nothing changed + [1] + $ test -f .hg/topic-namespace + [1] + Updating to a revision with a namespace should activate it $ hg up null