Show More
@@ -45,7 +45,6 b' from __future__ import absolute_import' | |||||
45 |
|
45 | |||
46 | __docformat__ = 'reStructuredText' |
|
46 | __docformat__ = 'reStructuredText' | |
47 |
|
47 | |||
48 | import inspect |
|
|||
49 | import re |
|
48 | import re | |
50 |
|
49 | |||
51 | from docutils import ( |
|
50 | from docutils import ( | |
@@ -177,13 +176,7 b' class Translator(nodes.NodeVisitor):' | |||||
177 | nodes.NodeVisitor.__init__(self, document) |
|
176 | nodes.NodeVisitor.__init__(self, document) | |
178 | self.settings = settings = document.settings |
|
177 | self.settings = settings = document.settings | |
179 | lcode = settings.language_code |
|
178 | lcode = settings.language_code | |
180 | arglen = len(inspect.getargspec(languages.get_language)[0]) |
|
179 | self.language = languages.get_language(lcode, self.document.reporter) | |
181 | if arglen == 2: |
|
|||
182 | self.language = languages.get_language( |
|
|||
183 | lcode, self.document.reporter |
|
|||
184 | ) |
|
|||
185 | else: |
|
|||
186 | self.language = languages.get_language(lcode) |
|
|||
187 | self.head = [] |
|
180 | self.head = [] | |
188 | self.body = [] |
|
181 | self.body = [] | |
189 | self.foot = [] |
|
182 | self.foot = [] |
@@ -1029,8 +1029,8 b' https://www.mercurial-scm.org/wiki/Missi' | |||||
1029 |
|
1029 | |||
1030 | Beware that existing shares will not be upgraded/downgraded, and by |
|
1030 | Beware that existing shares will not be upgraded/downgraded, and by | |
1031 | default, Mercurial will refuse to interact with them until the mismatch |
|
1031 | default, Mercurial will refuse to interact with them until the mismatch | |
1032 |
is resolved. See :hg:`help config |
|
1032 | is resolved. See :hg:`help config.share.safe-mismatch.source-safe` and | |
1033 |
:hg:`help config |
|
1033 | :hg:`help config.share.safe-mismatch.source-not-safe` for details. | |
1034 |
|
1034 | |||
1035 | Introduced in Mercurial 5.7. |
|
1035 | Introduced in Mercurial 5.7. | |
1036 |
|
1036 | |||
@@ -2088,12 +2088,11 b' Alias definitions for revsets. See :hg:`' | |||||
2088 | --------- |
|
2088 | --------- | |
2089 |
|
2089 | |||
2090 | ``safe-mismatch.source-safe`` |
|
2090 | ``safe-mismatch.source-safe`` | |
2091 |
|
||||
2092 | Controls what happens when the shared repository does not use the |
|
2091 | Controls what happens when the shared repository does not use the | |
2093 | share-safe mechanism but its source repository does. |
|
2092 | share-safe mechanism but its source repository does. | |
2094 |
|
2093 | |||
2095 | Possible values are `abort` (default), `allow`, `upgrade-abort` and |
|
2094 | Possible values are `abort` (default), `allow`, `upgrade-abort` and | |
2096 |
`upgrade-a |
|
2095 | `upgrade-allow`. | |
2097 |
|
2096 | |||
2098 | ``abort`` |
|
2097 | ``abort`` | |
2099 | Disallows running any command and aborts |
|
2098 | Disallows running any command and aborts | |
@@ -2105,7 +2104,7 b' Alias definitions for revsets. See :hg:`' | |||||
2105 | tries to upgrade the share; if it fails, continue by |
|
2104 | tries to upgrade the share; if it fails, continue by | |
2106 | respecting the share source setting |
|
2105 | respecting the share source setting | |
2107 |
|
2106 | |||
2108 |
Check :hg:`help config |
|
2107 | Check :hg:`help config.format.use-share-safe` for details about the | |
2109 | share-safe feature. |
|
2108 | share-safe feature. | |
2110 |
|
2109 | |||
2111 | ``safe-mismatch.source-safe.warn`` |
|
2110 | ``safe-mismatch.source-safe.warn`` | |
@@ -2114,12 +2113,11 b' Alias definitions for revsets. See :hg:`' | |||||
2114 | (default: True) |
|
2113 | (default: True) | |
2115 |
|
2114 | |||
2116 | ``safe-mismatch.source-not-safe`` |
|
2115 | ``safe-mismatch.source-not-safe`` | |
2117 |
|
||||
2118 | Controls what happens when the shared repository uses the share-safe |
|
2116 | Controls what happens when the shared repository uses the share-safe | |
2119 | mechanism but its source does not. |
|
2117 | mechanism but its source does not. | |
2120 |
|
2118 | |||
2121 | Possible values are `abort` (default), `allow`, `downgrade-abort` and |
|
2119 | Possible values are `abort` (default), `allow`, `downgrade-abort` and | |
2122 |
`downgrade-a |
|
2120 | `downgrade-allow`. | |
2123 |
|
2121 | |||
2124 | ``abort`` |
|
2122 | ``abort`` | |
2125 | Disallows running any command and aborts |
|
2123 | Disallows running any command and aborts | |
@@ -2131,7 +2129,7 b' Alias definitions for revsets. See :hg:`' | |||||
2131 | tries to downgrade the share to not use share-safe; |
|
2129 | tries to downgrade the share to not use share-safe; | |
2132 | if it fails, continue by respecting the shared source setting |
|
2130 | if it fails, continue by respecting the shared source setting | |
2133 |
|
2131 | |||
2134 |
Check :hg:`help config |
|
2132 | Check :hg:`help config.format.use-share-safe` for details about the | |
2135 | share-safe feature. |
|
2133 | share-safe feature. | |
2136 |
|
2134 | |||
2137 | ``safe-mismatch.source-not-safe.warn`` |
|
2135 | ``safe-mismatch.source-not-safe.warn`` | |
@@ -2176,7 +2174,7 b' category impact performance and reposito' | |||||
2176 | Default to True. |
|
2174 | Default to True. | |
2177 |
|
2175 | |||
2178 | For details on the "persistent-nodemap" feature, see: |
|
2176 | For details on the "persistent-nodemap" feature, see: | |
2179 |
:hg:`help config |
|
2177 | :hg:`help config.format.use-persistent-nodemap`. | |
2180 |
|
2178 | |||
2181 | ``revlog.persistent-nodemap.slow-path`` |
|
2179 | ``revlog.persistent-nodemap.slow-path`` | |
2182 | Control the behavior of Merucrial when using a repository with "persistent" |
|
2180 | Control the behavior of Merucrial when using a repository with "persistent" | |
@@ -2188,7 +2186,7 b' category impact performance and reposito' | |||||
2188 | ``abort``: Prevent access to such repositories. (This is the default) |
|
2186 | ``abort``: Prevent access to such repositories. (This is the default) | |
2189 |
|
2187 | |||
2190 | For details on the "persistent-nodemap" feature, see: |
|
2188 | For details on the "persistent-nodemap" feature, see: | |
2191 |
:hg:`help config |
|
2189 | :hg:`help config.format.use-persistent-nodemap`. | |
2192 |
|
2190 | |||
2193 | ``revlog.reuse-external-delta-parent`` |
|
2191 | ``revlog.reuse-external-delta-parent`` | |
2194 | Control the order in which delta parents are considered when adding new |
|
2192 | Control the order in which delta parents are considered when adding new |
General Comments 0
You need to be logged in to leave comments.
Login now