# HG changeset patch # User Oben Sonne # Date 1259022396 -3600 # Tue Nov 24 01:26:36 2009 +0100 # Node ID 344a9c71fa17bea51d829114d16dfda3ff29f27d # Parent 53394fbc3bc06c5c1a737e56bb825474f4c849f5 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. diff --git a/compass.py b/compass.py --- a/compass.py +++ b/compass.py @@ -353,14 +353,14 @@ 'Rev. () []' 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. diff --git a/tests/test-compass.out b/tests/test-compass.out --- a/tests/test-compass.out +++ b/tests/test-compass.out @@ -4303,22 +4303,22 @@ 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. () []' - + 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.