Show More
@@ -161,6 +161,21 b' def loaddoc(topic, subdir=None):' | |||||
161 |
|
161 | |||
162 | return loader |
|
162 | return loader | |
163 |
|
163 | |||
|
164 | internalstable = sorted([ | |||
|
165 | (['bundles'], _('container for exchange of repository data'), | |||
|
166 | loaddoc('bundles', subdir='internals')), | |||
|
167 | (['changegroups'], _('representation of revlog data'), | |||
|
168 | loaddoc('changegroups', subdir='internals')), | |||
|
169 | ]) | |||
|
170 | ||||
|
171 | def internalshelp(ui): | |||
|
172 | """Generate the index for the "internals" topic.""" | |||
|
173 | lines = [] | |||
|
174 | for names, header, doc in internalstable: | |||
|
175 | lines.append(' :%s: %s' % (names[0], header)) | |||
|
176 | ||||
|
177 | return '\n'.join(lines) | |||
|
178 | ||||
164 | helptable = sorted([ |
|
179 | helptable = sorted([ | |
165 | (["config", "hgrc"], _("Configuration Files"), loaddoc('config')), |
|
180 | (["config", "hgrc"], _("Configuration Files"), loaddoc('config')), | |
166 | (["dates"], _("Date Formats"), loaddoc('dates')), |
|
181 | (["dates"], _("Date Formats"), loaddoc('dates')), | |
@@ -187,6 +202,8 b' helptable = sorted([' | |||||
187 | (["phases"], _("Working with Phases"), loaddoc('phases')), |
|
202 | (["phases"], _("Working with Phases"), loaddoc('phases')), | |
188 | (['scripting'], _('Using Mercurial from scripts and automation'), |
|
203 | (['scripting'], _('Using Mercurial from scripts and automation'), | |
189 | loaddoc('scripting')), |
|
204 | loaddoc('scripting')), | |
|
205 | (['internals'], _("Technical implementation topics"), | |||
|
206 | internalshelp), | |||
190 | ]) |
|
207 | ]) | |
191 |
|
208 | |||
192 | # Map topics to lists of callable taking the current topic help and |
|
209 | # Map topics to lists of callable taking the current topic help and |
@@ -349,6 +349,7 b' Testing -h/--help:' | |||||
349 | glossary Glossary |
|
349 | glossary Glossary | |
350 | hgignore Syntax for Mercurial Ignore Files |
|
350 | hgignore Syntax for Mercurial Ignore Files | |
351 | hgweb Configuring hgweb |
|
351 | hgweb Configuring hgweb | |
|
352 | internals Technical implementation topics | |||
352 | merge-tools Merge Tools |
|
353 | merge-tools Merge Tools | |
353 | multirevs Specifying Multiple Revisions |
|
354 | multirevs Specifying Multiple Revisions | |
354 | patterns File Name Patterns |
|
355 | patterns File Name Patterns | |
@@ -431,6 +432,7 b' Testing -h/--help:' | |||||
431 | glossary Glossary |
|
432 | glossary Glossary | |
432 | hgignore Syntax for Mercurial Ignore Files |
|
433 | hgignore Syntax for Mercurial Ignore Files | |
433 | hgweb Configuring hgweb |
|
434 | hgweb Configuring hgweb | |
|
435 | internals Technical implementation topics | |||
434 | merge-tools Merge Tools |
|
436 | merge-tools Merge Tools | |
435 | multirevs Specifying Multiple Revisions |
|
437 | multirevs Specifying Multiple Revisions | |
436 | patterns File Name Patterns |
|
438 | patterns File Name Patterns |
@@ -111,6 +111,7 b' Short help:' | |||||
111 | glossary Glossary |
|
111 | glossary Glossary | |
112 | hgignore Syntax for Mercurial Ignore Files |
|
112 | hgignore Syntax for Mercurial Ignore Files | |
113 | hgweb Configuring hgweb |
|
113 | hgweb Configuring hgweb | |
|
114 | internals Technical implementation topics | |||
114 | merge-tools Merge Tools |
|
115 | merge-tools Merge Tools | |
115 | multirevs Specifying Multiple Revisions |
|
116 | multirevs Specifying Multiple Revisions | |
116 | patterns File Name Patterns |
|
117 | patterns File Name Patterns | |
@@ -187,6 +188,7 b' Short help:' | |||||
187 | glossary Glossary |
|
188 | glossary Glossary | |
188 | hgignore Syntax for Mercurial Ignore Files |
|
189 | hgignore Syntax for Mercurial Ignore Files | |
189 | hgweb Configuring hgweb |
|
190 | hgweb Configuring hgweb | |
|
191 | internals Technical implementation topics | |||
190 | merge-tools Merge Tools |
|
192 | merge-tools Merge Tools | |
191 | multirevs Specifying Multiple Revisions |
|
193 | multirevs Specifying Multiple Revisions | |
192 | patterns File Name Patterns |
|
194 | patterns File Name Patterns | |
@@ -773,6 +775,7 b' Test that default list of commands omits' | |||||
773 | glossary Glossary |
|
775 | glossary Glossary | |
774 | hgignore Syntax for Mercurial Ignore Files |
|
776 | hgignore Syntax for Mercurial Ignore Files | |
775 | hgweb Configuring hgweb |
|
777 | hgweb Configuring hgweb | |
|
778 | internals Technical implementation topics | |||
776 | merge-tools Merge Tools |
|
779 | merge-tools Merge Tools | |
777 | multirevs Specifying Multiple Revisions |
|
780 | multirevs Specifying Multiple Revisions | |
778 | patterns File Name Patterns |
|
781 | patterns File Name Patterns | |
@@ -862,6 +865,14 b' Test list of internal help commands' | |||||
862 |
|
865 | |||
863 | (use "hg help -v debug" to show built-in aliases and global options) |
|
866 | (use "hg help -v debug" to show built-in aliases and global options) | |
864 |
|
867 | |||
|
868 | internals topic renders index of available sub-topics | |||
|
869 | ||||
|
870 | $ hg help internals | |||
|
871 | Technical implementation topics | |||
|
872 | """"""""""""""""""""""""""""""" | |||
|
873 | ||||
|
874 | bundles container for exchange of repository data | |||
|
875 | changegroups representation of revlog data | |||
865 |
|
876 | |||
866 | Test list of commands with command with no help text |
|
877 | Test list of commands with command with no help text | |
867 |
|
878 | |||
@@ -1530,6 +1541,13 b' Dish up an empty repo; serve it cold.' | |||||
1530 | Configuring hgweb |
|
1541 | Configuring hgweb | |
1531 | </td></tr> |
|
1542 | </td></tr> | |
1532 | <tr><td> |
|
1543 | <tr><td> | |
|
1544 | <a href="/help/internals"> | |||
|
1545 | internals | |||
|
1546 | </a> | |||
|
1547 | </td><td> | |||
|
1548 | Technical implementation topics | |||
|
1549 | </td></tr> | |||
|
1550 | <tr><td> | |||
1533 | <a href="/help/merge-tools"> |
|
1551 | <a href="/help/merge-tools"> | |
1534 | merge-tools |
|
1552 | merge-tools | |
1535 | </a> |
|
1553 | </a> |
@@ -1062,6 +1062,10 b' help/ shows help topics' | |||||
1062 | "topic": "hgweb" |
|
1062 | "topic": "hgweb" | |
1063 | }, |
|
1063 | }, | |
1064 | { |
|
1064 | { | |
|
1065 | "summary": "Technical implementation topics", | |||
|
1066 | "topic": "internals" | |||
|
1067 | }, | |||
|
1068 | { | |||
1065 | "summary": "Merge Tools", |
|
1069 | "summary": "Merge Tools", | |
1066 | "topic": "merge-tools" |
|
1070 | "topic": "merge-tools" | |
1067 | }, |
|
1071 | }, |
General Comments 0
You need to be logged in to leave comments.
Login now