comparison tests/test-namespaces.t @ 6612:94bf2f307b75 stable

topic: check that topic namespace names are human-readable like topics
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 11 Dec 2023 16:51:27 -0300
parents ae7c75c43f92
children 9e442e116621 d3668c704d40
comparison
equal deleted inserted replaced
6611:1dc008b6ad21 6612:94bf2f307b75
40 æ (esc) 40 æ (esc)
41 $ hg --encoding ascii debug-topic-namespaces 41 $ hg --encoding ascii debug-topic-namespaces
42 ? (esc) 42 ? (esc)
43 $ hg --encoding latin1 debug-topic-namespaces 43 $ hg --encoding latin1 debug-topic-namespaces
44 \xe6 (esc) 44 \xe6 (esc)
45
46 $ hg --encoding utf-8 debug-topic-namespace ©
47 abort: invalid topic namespace name: '\xc2\xa9' (esc)
48 (topic namespace names can only consist of alphanumeric, '-', '_' and '.' characters)
49 [10]
50
51 $ hg --encoding latin1 debug-topic-namespace æ
52 abort: invalid topic namespace name: '\xc3\xa6' (esc)
53 (topic namespace names can only consist of alphanumeric, '-', '_' and '.' characters)
54 [10]
45 55
46 $ hg branches 56 $ hg branches
47 57
48 $ hg debug-topic-namespace --clear 58 $ hg debug-topic-namespace --clear
49 $ hg debug-topic-namespaces 59 $ hg debug-topic-namespaces