344a9c71fa17 — Oben Sonne 11 years ago
Adjust help output for Mercurial 1.4

Somewhere between 1.3 and 1.4 Mercurial has changed the docstring
formatting used for command helps. This commit adjusts compass' help
output to look nice again in 1.4. Accordingly the test script has been
updated to succeed in 1.4.
2 files changed, 15 insertions(+), 15 deletions(-)

M compass.py
M tests/test-compass.out
M compass.py +6 -6
@@ 353,14 353,14 @@ def compass(ui, repo, **opts):
     'Rev. <REV-NUMBER> <BRANCH_NAME> (<BOOKMARKS>) <TAGS+LABELS> [<REV-AGE>]'
     
     Labels are generated dynamically (not stored anywhere) and start with `@`:
-    
-    @above  : revision is a head revision above your current revision
-    @anon   : revision is anonymous, i.e. the only way to update to is
+
+    :@above:  revision is a head revision above your current revision
+    :@anon:   revision is anonymous, i.e. the only way to update to is
               specifying its revision number
-    @b-tip  : revision is tip of its branch, i.e. you'll get to this revision
+    :@b-tip:  revision is tip of its branch, i.e. you'll get to this revision
               when updating to its branch name
-    @closed : revision is part of a closed branch
-    
+    :@closed: revision is part of a closed branch
+     
     Finally compass prints out an overview about all existing branches and
     prints a warning if a commit will create a new head.
     

          
M tests/test-compass.out +9 -9
@@ 4303,22 4303,22 @@ Rev      5 dev-1.1                      
 hg compass [options]
 
 Show where you are, where you could be and where you go on commit.
-    
+
     Compass lists information about the working dir's parent revision and
     various other relevant revisions grouped by heads, inactive branch heads
     and inactive bookmarks. For each listed revision it prints a line like:
-    
+
     'Rev. <REV-NUMBER> <BRANCH_NAME> (<BOOKMARKS>) <TAGS+LABELS> [<REV-AGE>]'
-    
+
     Labels are generated dynamically (not stored anywhere) and start with `@`:
-    
-    @above  : revision is a head revision above your current revision
-    @anon   : revision is anonymous, i.e. the only way to update to is
+
+    @above    revision is a head revision above your current revision
+    @anon     revision is anonymous, i.e. the only way to update to is
               specifying its revision number
-    @b-tip  : revision is tip of its branch, i.e. you'll get to this revision
+    @b-tip    revision is tip of its branch, i.e. you'll get to this revision
               when updating to its branch name
-    @closed : revision is part of a closed branch
-    
+    @closed   revision is part of a closed branch
+
     Finally compass prints out an overview about all existing branches and
     prints a warning if a commit will create a new head.