In the Mercurial API, is there any way to read the configuration values associated with a repository that you're accessing over HTTPS? The repository's ui object doesn't seem to hold them.
Mercurial API: reading config over https
244 views Asked by Shoaib At
1
The short answer is "no". There is no way to read the config values from a repo over HTTP using the Mercurial API. These values are never transmitted over the network. A more detailed explanation follows.
The
ui.ui()class provides access to system, user and local repository config values.The constructor for a repository object requires a
uiobject and apathto be provided.The values from
uiare copied into the repo object.If
pathis a local repository, then the config settings for that repository may be accessed viarepo.ui. However ifpathis a URL, the API does not query the remote server for config settings. In that case,repo.uionly includes the system and user settings.