# HG changeset patch # User Pierre-Yves David # Date 1504260147 -7200 # Node ID d16781d7a061fc1fca7eed7a789872f503f85abf # Parent f6e297fda5c614b7b4d9c37b92e7ac628d4b653b tests: import section in 'test-topic-debugcb.t' We now have two levels of titles to clarify some aspect of the tests. diff -r f6e297fda5c6 -r d16781d7a061 tests/test-topic-debugcb.t --- a/tests/test-topic-debugcb.t Fri Sep 01 16:22:49 2017 +0200 +++ b/tests/test-topic-debugcb.t Fri Sep 01 12:02:27 2017 +0200 @@ -1,3 +1,4 @@ +================================================== Test for `hg debugconvertbookmark` added by topics ================================================== @@ -12,7 +13,7 @@ > EOF Setting up the things -===================== +--------------------- $ hg init repo $ cd repo @@ -37,8 +38,12 @@ |/ bookmark: hellos o [0:3caf92e45cfb] First commit + +Generic tests +============= + Help for the command -==================== +-------------------- $ hg help debugconvertbookmark hg debugcb [-b BOOKMARK] [--all] @@ -55,7 +60,7 @@ (some details hidden, use --verbose to show complete help) Running without any argument -============================ +---------------------------- $ hg debugconvertbookmark abort: you must specify either '--all' or '-b' @@ -75,9 +80,13 @@ |/ o [0:3caf92e45cfb] First commit + Changing all bookmarks to topic =============================== +Simple test +----------- + $ hg debugconvertbookmark --all switching to topic secondfix changed topic to "secondfix" on 2 revisions @@ -90,8 +99,9 @@ |/ topic: hellos o [0:3caf92e45cfb] First commit + Trying with multiple bookmarks on a single changeset -==================================================== +---------------------------------------------------- $ echo "multiple bookmarks" >> m $ hg commit -Aqm "Trying multiple bookmarks" @@ -125,8 +135,9 @@ |/ topic: hellos o [0:3caf92e45cfb] First commit -Another setup -============== + +Two bookmarks on two different topological branches +--------------------------------------------------- $ cd .. $ rm -rf repo @@ -179,8 +190,9 @@ | o [0:fc58adec4bcd] A -Another Setup -============= + +Two bookmarks on top of each other +---------------------------------- $ cd .. $ rm -rf setup1