# hg-test default-r37 (tip) ~/hg-test $ hg branches default 37:3a1e58edd9d6 # hg-test default-r37 (tip) ~/hg-test $ hg branch1 hg: unbekannter Befehl 'branch1' (did you mean one of branch, branches?) # hg-test default-r37 (tip) ~/hg-test $ hg branch branch1 Arbeitsverzeichnis wurde als Zweig branch1 markiert (branches are permanent and global, did you want a bookmark?) # hg-test default-r37 (tip) ~/hg-test $ echo b1 > b1 # hg-test default-r37 (tip) ~/hg-test $ hg add b1 # hg-test default-r37 (tip) ~/hg-test $ hg ci -m "Add b1" # hg-test branch1-r38 (tip) ~/hg-test $ hg tag tag1 # hg-test branch1-r39 (tip) ~/hg-test $ hg branch branch2 Arbeitsverzeichnis wurde als Zweig branch2 markiert # hg-test branch1-r39 (tip) ~/hg-test $ echo b2 > b2 # hg-test branch1-r39 (tip) ~/hg-test $ hg add b2 # hg-test branch1-r39 (tip) ~/hg-test $ hg ci -m "Add b2" # hg-test branch2-r40 (tip) ~/hg-test $ hg tag tag2 # hg-test branch2-r41 (tip) ~/hg-test $ echo another b2 >> b2 # hg-test branch2-r41 (tip) ~/hg-test $ hg ci -m "Change b2" # hg-test branch2-r42 (tip) ~/hg-test $ hg tag tag2b # hg-test branch2-r43 (tip) ~/hg-test $ hg log --rev="branch(branch2) and tag()" --template="{tags}\n" tag2 tag2b ingo@aeolus hg-test branch2-r43 (tip) ~/hg-test $ LC_ALL=C hg log -G -l8 @ changeset: 43:192254400cfb | branch: branch2 | tag: tip | user: planetmaker | date: Thu Sep 17 12:40:04 2015 +0200 | summary: Added tag tag2b for changeset cb2e9faf3c2e | o changeset: 42:cb2e9faf3c2e | branch: branch2 | tag: tag2b | user: planetmaker | date: Thu Sep 17 12:39:59 2015 +0200 | summary: Change b2 | o changeset: 41:44b5adedce9e | branch: branch2 | user: planetmaker | date: Thu Sep 17 12:39:36 2015 +0200 | summary: Added tag tag2 for changeset dcb63a56d9f1 | o changeset: 40:dcb63a56d9f1 | branch: branch2 | tag: tag2 | user: planetmaker | date: Thu Sep 17 12:39:28 2015 +0200 | summary: Add b2 | o changeset: 39:8ba3f8c93261 | branch: branch1 | user: planetmaker | date: Thu Sep 17 12:38:59 2015 +0200 | summary: Added tag tag1 for changeset a2475f86f207 | o changeset: 38:a2475f86f207 | branch: branch1 | tag: tag1 | user: planetmaker | date: Thu Sep 17 12:37:29 2015 +0200 | summary: Add b1 |