Mercurial > hg-git-serve
comparison src/hgext3rd/hggit_serve/__init__.py @ 12:f630d9904ea7
Reorganize project into multiple files.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Wed, 18 Feb 2026 16:17:05 -0500 |
| parents | src/hgext3rd/hggit_serve.py@ce204bcc4e04 |
| children | 00bdfac5416c |
comparison
equal
deleted
inserted
replaced
| 11:ce204bcc4e04 | 12:f630d9904ea7 |
|---|---|
| 1 from __future__ import annotations | |
| 2 | |
| 3 import typing as t | |
| 4 | |
| 5 if t.TYPE_CHECKING: | |
| 6 import mercurial.ui as hgui | |
| 7 | |
| 8 from . import _export | |
| 9 from . import _http | |
| 10 | |
| 11 # | |
| 12 # Interfacing with Mercurial | |
| 13 # | |
| 14 | |
| 15 __version__ = '0.2.1' | |
| 16 testedwith = b'7.1 7.2' | |
| 17 minimumhgversion = b'7.1' | |
| 18 | |
| 19 | |
| 20 def uisetup(ui: hgui.ui) -> None: | |
| 21 _http.uisetup(ui) | |
| 22 | |
| 23 | |
| 24 def uipopulate(ui: hgui.ui) -> None: | |
| 25 _export.uipopulate(ui) | |
| 26 | |
| 27 | |
| 28 __all__ = ( | |
| 29 '__version__', | |
| 30 'minimumhgversion', | |
| 31 'testedwith', | |
| 32 'uipopulate', | |
| 33 'uisetup', | |
| 34 ) |
