comparison tests/test-namespaces.t @ 6610:ae7c75c43f92 stable

topic: properly decode topic and topic namespace after reading from disk Looks like we forgot that the bytes read from disk should be converted to the local encoding. The way it's done in this patch is how branch is handled in core.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 11 Dec 2023 16:15:10 -0300
parents 81e89d943a4e
children 94bf2f307b75
comparison
equal deleted inserted replaced
6598:536d950753e6 6610:ae7c75c43f92
28 $ hg log -r 'wdir()' -T '{topic_namespace}\n' 28 $ hg log -r 'wdir()' -T '{topic_namespace}\n'
29 space-name 29 space-name
30 30
31 $ hg log -r 'wdir()' -T '{fqbn}\n' 31 $ hg log -r 'wdir()' -T '{fqbn}\n'
32 default//space-name/feature 32 default//space-name/feature
33
34 Non-ascii topic namespace name
35
36 $ hg debug-topic-namespace --clear
37 $ hg --encoding utf-8 debug-topic-namespace æ
38 marked working directory as topic namespace: \xc3\xa6 (esc)
39 $ hg --encoding utf-8 debug-topic-namespaces
40 æ (esc)
41 $ hg --encoding ascii debug-topic-namespaces
42 ? (esc)
43 $ hg --encoding latin1 debug-topic-namespaces
44 \xe6 (esc)
33 45
34 $ hg branches 46 $ hg branches
35 47
36 $ hg debug-topic-namespace --clear 48 $ hg debug-topic-namespace --clear
37 $ hg debug-topic-namespaces 49 $ hg debug-topic-namespaces