comparison tests/test-namespaces.t @ 6809:9903ee44e658 mercurial-5.6

test-compat: merge mercurial-5.7 into mercurial-5.6
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 26 Jun 2024 18:09:37 +0400
parents 3228f1e92466
children 5376963ea1d9
comparison
equal deleted inserted replaced
6808:c7d3e1d8c6f1 6809:9903ee44e658
50 \xc3\xa6 (no-eol) (esc) 50 \xc3\xa6 (no-eol) (esc)
51 51
52 $ hg --encoding utf-8 debug-topic-namespace © 52 $ hg --encoding utf-8 debug-topic-namespace ©
53 abort: invalid topic namespace name: '\xc2\xa9' (esc) 53 abort: invalid topic namespace name: '\xc2\xa9' (esc)
54 (topic namespace names can only consist of alphanumeric, '-', '_' and '.' characters) 54 (topic namespace names can only consist of alphanumeric, '-', '_' and '.' characters)
55 [10] 55 [255]
56 56
57 $ hg --encoding latin1 debug-topic-namespace æ 57 $ hg --encoding latin1 debug-topic-namespace æ
58 abort: invalid topic namespace name: '\xc3\xa6' (esc) 58 abort: invalid topic namespace name: '\xc3\xa6' (esc)
59 (topic namespace names can only consist of alphanumeric, '-', '_' and '.' characters) 59 (topic namespace names can only consist of alphanumeric, '-', '_' and '.' characters)
60 [10] 60 [255]
61 61
62 $ hg branches 62 $ hg branches
63 63
64 $ hg debug-topic-namespace --clear 64 $ hg debug-topic-namespace --clear
65 $ hg debug-topic-namespaces 65 $ hg debug-topic-namespaces
66 66
67 $ hg topic --clear 67 $ hg topic --clear
68 clearing empty topic "feature" 68 clearing empty topic "feature"
69 $ hg topics 69 $ hg topics
70 70
71 $ hg debugtopicnamespace --clear nonsense 71 $ hg debug-topic-namespace --clear nonsense
72 abort: cannot use --clear when setting a topic namespace 72 abort: cannot use --clear when setting a topic namespace
73 [255] 73 [255]
74 74
75 $ hg branch stable 75 $ hg branch stable
76 marked working directory as branch stable 76 marked working directory as branch stable
137 feature (no-eol) 137 feature (no-eol)
138 138
139 Updating to a topic namespace is not supported 139 Updating to a topic namespace is not supported
140 140
141 $ hg up alice 141 $ hg up alice
142 abort: unknown revision 'alice' 142 abort: unknown revision 'alice'!
143 [255] 143 [255]
144 144
145 Export/import of topic namespaces 145 Export/import of topic namespaces
146 146
147 $ hg export 147 $ hg export
276 $ nslog 'topicnamespace(wdir())' 276 $ nslog 'topicnamespace(wdir())'
277 0: alice 277 0: alice
278 $ nslog 'topicnamespace("re:ice$")' 278 $ nslog 'topicnamespace("re:ice$")'
279 0: alice 279 0: alice
280 $ nslog 'topicnamespace(nonsense)' 280 $ nslog 'topicnamespace(nonsense)'
281 abort: unknown revision 'nonsense' 281 abort: unknown revision 'nonsense'!
282 [255] 282 [255]
283 283
284 $ nslog 'topicnamespace("re:nonsense")' 284 $ nslog 'topicnamespace("re:nonsense")'
285 $ nslog 'topicnamespace("literal:nonsense")' 285 $ nslog 'topicnamespace("literal:nonsense")'
286 abort: topic namespace 'nonsense' does not exist 286 abort: topic namespace 'nonsense' does not exist!
287 [255] 287 [255]
288 288
289 Debug command related to the default/empty topic namespace 289 Debug command related to the default/empty topic namespace
290 290
291 $ hg debug-topic-namespace --clear 291 $ hg debug-topic-namespace --clear
338 338
339 $ hg verify --quiet 339 $ hg verify --quiet
340 340
341 Parsing 341 Parsing
342 342
343 $ hg debugparsefqbn foo/bar//user26/feature -T '[{branch}] <{topic_namespace}> ({topic})\n' 343 $ hg debug-parse-fqbn foo/bar//user26/feature -T '[{branch}] <{topic_namespace}> ({topic})\n'
344 [foo/bar] <user26> (feature) 344 [foo/bar] <user26> (feature)
345 345
346 no double slashes means it's a named branch 346 no double slashes means it's a named branch
347 $ hg debug-parse-fqbn foo/bar 347 $ hg debug-parse-fqbn foo/bar
348 branch: foo/bar 348 branch: foo/bar
349 namespace: none 349 namespace: none
350 topic: 350 topic:
351 351
352 Formatting 352 Formatting
353 353
354 $ hg debugformatfqbn -b branch -n namespace -t topic 354 $ hg debug-format-fqbn -b branch -n namespace -t topic
355 branch//namespace/topic 355 branch//namespace/topic
356 356
357 $ hg debug-format-fqbn -n namespace 357 $ hg debug-format-fqbn -n namespace
358 //namespace/ 358 //namespace/
359 359