# HG changeset patch # User Anton Shestakov # Date 1672747131 -14400 # Node ID c5848d8b664dbf39c0b2cbf71aa3a63119199e31 # Parent 7089675fe6d307ff2fdb6981b5d3b80361bf0059 tests: make sure we properly store branch name in commit extras diff -r 7089675fe6d3 -r c5848d8b664d tests/test-split.t --- a/tests/test-split.t Thu Dec 22 16:54:36 2022 +0400 +++ b/tests/test-split.t Tue Jan 03 15:58:51 2023 +0400 @@ -489,6 +489,12 @@ $ hg topic * mytopic (2 changesets) +Check commit extras + + $ hg log -r "tip~1::" -T '{rev}: {join(extras, " ")}\n' + 19: branch=double//slash topic=mytopic + 20: branch=double//slash topic=mytopic + Test split the first commit on a branch $ touch SPLIT1 SPLIT2 diff -r 7089675fe6d3 -r c5848d8b664d tests/test-stack-branch.t --- a/tests/test-stack-branch.t Thu Dec 22 16:54:36 2022 +0400 +++ b/tests/test-stack-branch.t Tue Jan 03 15:58:51 2023 +0400 @@ -49,6 +49,14 @@ o 0 double//slash {} draft c_a +Commit extras have branch name without formatting +------------------------------------------------- + + $ hg log -r 1 -T '{rev}: {join(extras, " ")}\n' + 1: branch=double//slash + $ hg log -r 5 -T '{rev}: {join(extras, " ")}\n' + 5: branch=foo//bar + Check that topic without any parent does not crash --list ---------------------------------------------------------