Show More
@@ -322,6 +322,15 b' with the ``minimumhgversion`` variable::' | |||||
322 | Older clients will print a warning that the extension requires a new version, |
|
322 | Older clients will print a warning that the extension requires a new version, | |
323 | instead of attempting to load it. |
|
323 | instead of attempting to load it. | |
324 |
|
324 | |||
|
325 | The extension itself can be assigned a version value through one of two module | |||
|
326 | attributes, and will be displayed in crash reports and :hg:`version -v`:: | |||
|
327 | ||||
|
328 | * ``__version__`` is a plain value | |||
|
329 | * ``getversion`` is a no argument ``Callable`` that returns a value | |||
|
330 | ||||
|
331 | In both cases, the value must be either a byte string, or a list or tuple of | |||
|
332 | numeric values which will be joined with ``.``. | |||
|
333 | ||||
325 | Wrap up: what belongs where? |
|
334 | Wrap up: what belongs where? | |
326 | ============================ |
|
335 | ============================ | |
327 |
|
336 |
General Comments 0
You need to be logged in to leave comments.
Login now