Show More
@@ -741,7 +741,10 b' def getsections(blocks):' | |||||
741 | break |
|
741 | break | |
742 | pointer += 1 |
|
742 | pointer += 1 | |
743 | if pointer > 1: |
|
743 | if pointer > 1: | |
744 |
|
|
744 | blevel = secs[-pointer][1] | |
|
745 | if section['type'] != b['type']: | |||
|
746 | blevel += 1 | |||
|
747 | secs.append(('', blevel, [])) | |||
745 | secs[-1][2].append(b) |
|
748 | secs[-1][2].append(b) | |
746 | return secs |
|
749 | return secs | |
747 |
|
750 |
@@ -922,6 +922,11 b' Test repeated config section name' | |||||
922 | "smtp.host" |
|
922 | "smtp.host" | |
923 | Host name of mail server, e.g. "mail.example.com". |
|
923 | Host name of mail server, e.g. "mail.example.com". | |
924 |
|
924 | |||
|
925 | Unrelated trailing paragraphs shouldn't be included | |||
|
926 | ||||
|
927 | $ hg help config.extramsg | grep '^$' | |||
|
928 | ||||
|
929 | ||||
925 | Test capitalized section name |
|
930 | Test capitalized section name | |
926 |
|
931 | |||
927 | $ hg help scripting.HGPLAIN > /dev/null |
|
932 | $ hg help scripting.HGPLAIN > /dev/null |
General Comments 0
You need to be logged in to leave comments.
Login now