server: moved init/start logic outside of Mercurial extension
This provides a more natural and easier to test setting, with the extension being now only a thin wrapper for command-line arguments, configuration and startup exceptions. This also makes inner code more natural by stopping to insist that any string must be bytes: URLs are now str in `hgitaly.server`. On the other hand, storage root paths will keep on being bytes, as is natural for file system paths.
Loading
Please register or sign in to comment