Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8076399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:15:12+00:00 2026-06-05T15:15:12+00:00

In the Mercurial API, is there any way to read the configuration values associated

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:15:13+00:00Added an answer on June 5, 2026 at 3:15 pm

    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.

    >>> from mercurial import hg, ui
    >>> u = ui.ui()
    >>> u.configlist('ui', 'username')
    ['Your', 'Name', '<your@email.com>']
    

    The constructor for a repository object requires a ui object and a path to be provided.

    The values from ui are copied into the repo object.

    If path is a local repository, then the config settings for that repository may be accessed via repo.ui. However if path is a URL, the API does not query the remote server for config settings. In that case, repo.ui only includes the system and user settings.

    >>> repo = hg.repository(ui.ui(), '.')
    >>> repo.ui.configlist('paths', 'default')
    ['https://www.mercurial-scm.org/repo/hg']
    
    ... start an hg serve session at http://localhost:8000 ...
    
    >>> repo = hg.repository(ui.ui(), 'http://localhost:8000')
    >>> repo.ui.configlist('paths', 'default')
    []
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does Mercurial offer any type of extensions that offer functionality similar to TFS's work
I have a mercurial repository that is not accessible by Http. I can't figure
The Mercurial repository has two branches that originate from revision 0. Branch names are
In mercurial is there a way to diff between 2 different tags? I have
I have a central Mercurial repository, which configured to use HTTPS and requires authentication
Mercurial has a way of printing the root directory (that contains .hg) via hg
In mercurial, is there an easy way to programmatically check out the 'latest' tag?
I have a hypothetical Mercurial repository on disc. I'm most of the way through
I have a largish Mercurial repository that I've decided would be better as several
How can I use the Mercurial API to determine the changes made to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.