comparison tests/test-topic-flow-publish-bare.t @ 6296:a2855aff1268

topic: call a different wire protocol command to get tns-aware branchmap To see if remote supports topic namespaces, we announce topics-namespaces capability and then check it. If it's supported, then we can use a different branchmap command that gives us branchmap keyed by fqbn. The support for old "branch:topic" format for the keys is continued through the already existing code.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 25 Jul 2022 12:30:12 +0400
parents 51249e4e9025
children 60daa7887c49
comparison
equal deleted inserted replaced
6295:e81b3516242f 6296:a2855aff1268
348 Making sure the topic-publishing mode is announced as a capability 348 Making sure the topic-publishing mode is announced as a capability
349 349
350 $ hg debugcapabilities $TESTTMP/bare-branch-server | grep topics 350 $ hg debugcapabilities $TESTTMP/bare-branch-server | grep topics
351 ext-topics-publish=auto 351 ext-topics-publish=auto
352 topics 352 topics
353 topics-namespaces
353 $ hg debugcapabilities ssh://user@dummy/bare-branch-server | grep topics 354 $ hg debugcapabilities ssh://user@dummy/bare-branch-server | grep topics
354 _exttopics_heads 355 _exttopics_heads
355 ext-topics-publish=auto 356 ext-topics-publish=auto
356 topics 357 topics
358 topics-namespaces
357 $ hg serve -R ../bare-branch-server -p $HGPORT -d --pid-file hg.pid 359 $ hg serve -R ../bare-branch-server -p $HGPORT -d --pid-file hg.pid
358 $ cat hg.pid >> $DAEMON_PIDS 360 $ cat hg.pid >> $DAEMON_PIDS
359 $ hg debugcapabilities http://localhost:$HGPORT | grep topics 361 $ hg debugcapabilities http://localhost:$HGPORT | grep topics
360 _exttopics_heads 362 _exttopics_heads
361 ext-topics-publish=auto 363 ext-topics-publish=auto
362 topics 364 topics
365 topics-namespaces
363 $ killdaemons.py 366 $ killdaemons.py
364 367
365 Trying to push changeset without topic (would publish them) 368 Trying to push changeset without topic (would publish them)
366 369
367 $ mkcommit c_aM0 --secret 370 $ mkcommit c_aM0 --secret