Mercurial > evolve
view tests/test-namespaces.t @ 6240:2686ecc90791
topic: store topic namespace in commit extras
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 04 May 2022 15:53:57 +0400 |
parents | 8861e33f3bb2 |
children | 85abf58c3d8c |
line wrap: on
line source
https://www.mercurial-scm.org/wiki/TopicPlan#sub_branches.2C_namespacing_and_representation $ . "$TESTDIR/testlib/topic_setup.sh" $ hg init repo $ cd repo $ hg debug-topic-namespace space-name marked working directory as topic namespace: space-name $ hg debug-topic-namespaces space-name $ hg branches $ hg debug-topic-namespace --clear $ hg debug-topic-namespaces default $ hg debugtopicnamespace --clear nonsense abort: cannot use --clear when setting a topic namespace [255] $ hg branch stable marked working directory as branch stable (branches are permanent and global, did you want a bookmark?) $ hg debug-topic-namespace alice marked working directory as topic namespace: alice $ hg topic feature marked working directory as topic: feature $ echo a > a $ hg ci -qAm a $ hg debug-topic-namespaces alice Parsing $ hg debugparsefqbn foo/bar//user26/feature -T '[{branch}] <{topic_namespace}> ({topic})\n' [foo/bar] <user26> (feature) no double slashes means it's a named branch $ hg debug-parse-fqbn foo/bar branch: foo/bar namespace: default topic: Formatting $ hg debugformatfqbn -b branch -n namespace -t topic branch//namespace/topic $ hg debug-format-fqbn -n namespace //namespace/ $ hg debug-format-fqbn -b foo/bar -n user26 -t feature foo/bar//user26/feature $ cd ..