Mercurial > hg-git-serve
comparison src/hgext3rd/hggit_serve/_ssh.py @ 15:b65d5922b8ee
Fix formatting in _ssh.py.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Fri, 20 Feb 2026 21:07:11 -0500 |
| parents | 00bdfac5416c |
| children |
comparison
equal
deleted
inserted
replaced
| 14:959ef686193f | 15:b65d5922b8ee |
|---|---|
| 17 | 17 |
| 18 | 18 |
| 19 def _not_git() -> hgerr.StateError: | 19 def _not_git() -> hgerr.StateError: |
| 20 return hgerr.StateError( | 20 return hgerr.StateError( |
| 21 b'Git is not enabled for this repository.', | 21 b'Git is not enabled for this repository.', |
| 22 hint=b'The server administrator should enable the ``hggit`` extension ' | 22 hint=( |
| 23 b'and run ``hg git-export`` to enable Git access.', | 23 b'The server administrator should enable the ``hggit`` extension ' |
| 24 b'and run ``hg git-export`` to enable Git access.' | |
| 25 ), | |
| 24 ) | 26 ) |
| 25 | 27 |
| 26 | 28 |
| 27 def _maybe(flag: bytes, include: bool) -> tuple[bytes, ...]: | 29 def _maybe(flag: bytes, include: bool) -> tuple[bytes, ...]: |
| 28 return (flag,) if include else () | 30 return (flag,) if include else () |
