changeset 2903:d16781d7a061

tests: import section in 'test-topic-debugcb.t' We now have two levels of titles to clarify some aspect of the tests.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 01 Sep 2017 12:02:27 +0200
parents f6e297fda5c6
children 4ae89b5834e6
files tests/test-topic-debugcb.t
diffstat 1 files changed, 20 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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