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 8050381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:04:45+00:00 2026-06-05T07:04:45+00:00

When I try to clone a https-authenticated Mercurial repository (e.g. from kiln), it asks

  • 0

When I try to clone a https-authenticated Mercurial repository (e.g. from kiln), it asks me for my user name

C:\temp\test>hg clone https://<my-login-name>.kilnhg.com/Code/Repositories/Group/test
http authorization required
realm: kiln
user:

We want to invoke the hg clone command from our GUI application with any URL provided by the user and ask the user on demand for the user name and password, if they are required.

How can I configure Mercurial to invoke an arbitrary script which returns the user name/password, similar to scripts whose paths are defined in the environment variables GIT_ASKPASS or SSH_ASKPASS for Git?

  • 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-05T07:04:47+00:00Added an answer on June 5, 2026 at 7:04 am

    You can configure your credentials in your user-wide hgrc (mercurial.ini in the user profile directory, on Windows):

    [auth]
    foo.prefix = example.com/path
    foo.username = user
    foo.password = password
    

    Afterwards, the requests for this server will silently use the credentials provided in the hgrc file.

    See the docs on hgrc for more information.


    Update: After studying the TortoiseHg sources a little (the code in question being the SyncWidget.inclicked and SyncWidget.pullclicked methods in sync.py), I’ve found out that TortoiseHg, which does precisely what you’re trying to achieve, apparently first tries the URL for the auth request, and, if it’s been given, asks the user for the login and password, to rebuild a full URL (with credentials) and supply it to hg pull.

    I guess you can do the same.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to follow the facebook-android tutorial from here: https://developers.facebook.com/docs/mobile/android/build/#sample I am working in
I have a central Mercurial repository, which configured to use HTTPS and requires authentication
When I try to clone a project from the GitHub, it gives me the
I try to get a page with curl from an IIS-Server which demands user
When I try to clone from git git clone http://github.com/symfony/symfony.git d:/www/a/vendor/symfony I get an
How to get html source code from https? I try to use curl instead
My Arduino (an Arduino Duemilanove clone) restarts when I try to respond to an
Try this: $test = array (2+2); var_dump($test); Then try the same but inside a
I feel like I tried everything to clone http://thechaw.com/source from git with no success.
I am trying to authenticate a user by sending a POST request from my

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.