comparison tests/test-namespaces.t @ 6245:a54db3e55c88

topic: switch to namespace when updating to a commit, similar to topic
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 23 May 2022 14:02:54 +0400
parents 91d9a279b84a
children a2491c578d2b
comparison
equal deleted inserted replaced
6244:945d27da146c 6245:a54db3e55c88
43 0: stable alice feature 43 0: stable alice feature
44 44
45 $ hg log -r . -T '{rev}: {fqbn}\n' 45 $ hg log -r . -T '{rev}: {fqbn}\n'
46 0: stable//alice/feature 46 0: stable//alice/feature
47 47
48 Updating to a revision with a namespace should activate it
49
50 $ hg up null
51 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
52 $ hg debug-topic-namespace
53 default
54 $ hg topics
55 feature (1 changesets)
56 $ hg up 0
57 switching to topic-namespace alice
58 switching to topic feature
59 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
60 $ hg debug-topic-namespace
61 alice
62 $ hg topics
63 * feature (1 changesets)
64
48 Parsing 65 Parsing
49 66
50 $ hg debugparsefqbn foo/bar//user26/feature -T '[{branch}] <{topic_namespace}> ({topic})\n' 67 $ hg debugparsefqbn foo/bar//user26/feature -T '[{branch}] <{topic_namespace}> ({topic})\n'
51 [foo/bar] <user26> (feature) 68 [foo/bar] <user26> (feature)
52 69