void () { cd(myRepository); hg("bookmark A_BookMark"); hg("tag tag1"); String aFile = "A.txt"; touch(aFile, "base"); hg("add " + aFile); hg("commit -m 'create file'"); hg("bookmark B_BookMark"); hg("branch branchA"); hg("tag tag2"); echo(aFile, " modify with a"); hg("commit -m 'create branchA'"); hg("up default"); hg("branch branchB"); hg("tag -l localTag"); echo(aFile, " modify with b"); hg("commit -m 'modify file in branchB'"); hg("bookmark C_BookMark"); hg("up branchA"); }