comparison tests/test-namespaces.t @ 6760:477a1e8b77d8 mercurial-5.8

test-compat: merge mercurial-5.9 into mercurial-5.8
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 11 Apr 2024 12:33:39 -0300
parents bdf99d434b06
children 3228f1e92466
comparison
equal deleted inserted replaced
6718:92bde649e5aa 6760:477a1e8b77d8
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
290
291 $ hg debug-topic-namespace --clear
292
293 $ echo none > none
294 $ hg ci -qAm 'tns=none' \
295 > --config extensions.topic=! \
296 > --config extensions.commitextras= \
297 > --extra topic-namespace=none
298
299
300 $ echo default > default
301 $ hg ci -qAm 'tns=default' \
302 > --config extensions.topic=! \
303 > --config extensions.commitextras= \
304 > --extra topic-namespace=default
305
306 $ hg debug-default-topic-namespace \
307 > --debug \
308 > | grep extra
309 extra: branch=stable
310 extra: topic-namespace=none
311
312 $ hg debug-default-topic-namespace \
313 > --no-none \
314 > --default \
315 > --debug \
316 > | grep extra
317 extra: branch=stable
318 extra: topic-namespace=default
319
320 $ hg debug-default-topic-namespace \
321 > --default \
322 > -T '{rev}:{node|short} {join(extras, " ")}\n'
323 4:29a2d0acd473 branch=stable topic-namespace=none
324 5:16d6061fce0c branch=stable topic-namespace=default
325
326 $ hg debug-default-topic-namespace --none --default --clear
327
328 $ hg debug-default-topic-namespace --none --default
329
330 $ hg evolve --config extensions.evolve= --list
331
332 $ hg evolve --config extensions.evolve= --any
333 update:[7] tns=default
334 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
335 working directory is now at 38c9ea9d27a7
336
337 $ hg debug-default-topic-namespace --none --default
338
339 $ hg verify --quiet
340
289 Parsing 341 Parsing
290 342
291 $ hg debugparsefqbn foo/bar//user26/feature -T '[{branch}] <{topic_namespace}> ({topic})\n' 343 $ hg debugparsefqbn foo/bar//user26/feature -T '[{branch}] <{topic_namespace}> ({topic})\n'
292 [foo/bar] <user26> (feature) 344 [foo/bar] <user26> (feature)
293 345