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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:39:03+00:00 2026-05-30T01:39:03+00:00

Few days ago I started experimenting with Mercurial, and everything went great, until I

  • 0

Few days ago I started experimenting with Mercurial, and everything went great, until I decided to try writting a small program, that gets the list of repositories and lists of changeset IDs for each repository from a remote server, allows the user to pick repository and changeset, clones it and updates to the chosen revision. This led to two questions:

  1. Is there a way to get a list of repositories from server (besides parsing HTML)?
  2. Is there a way to get information, such as tags, branches, etc. about one of the repositories, without actually cloning it first?
  • 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-05-30T01:39:04+00:00Added an answer on May 30, 2026 at 1:39 am

    No, Mercurial is designed so that you need a local repository for almost all commands. The only built-in command that will give you information about a remote repository is hg id:

    $ hg id https://bitbucket.org/aragost/javahg/
    3b2711b26dbd
    

    To get hold of more information you can sometimes exploit the raw template for hgweb:

    $ wget -q -O - 'https://www.mercurial-scm.org/repo/hg/tags?style=raw' | head 
    tip     a3a36bcf122e2ea4edbbe4ac44da59446cf0ee07
    4.2.1   c850f0ed54c1d42f9aa079ad528f8127e5775217
    4.2     bb96d4a497432722623ae60d9bc734a1e360179e
    4.2-rc  616e788321cc4ae9975b7f0c54c849f36d82182b
    4.1.3   77eaf9539499a1b8be259ffe7ada787d07857f80
    4.1.2   ed5b25874d998ababb181a939dd37a16ea644435
    4.1.1   25703b624d27e3917d978af56d6ad59331e0464a
    4.1     e1526da1e6d84e03146151c9b6e6950fe9a83d7d
    4.1-rc  a1dd2c0c479e0550040542e392e87bc91262517e
    4.0.2   e69874dc1f4e142746ff3df91e678a09c6fc208c
    

    That requires that the host is running the hgweb CGI script that comes with Mercurial. For a site like Bitbucket you would need to use their API.

    Finally, if you can enable extensions on the remote repository, then it’s possible to write an extension that exposes the information you want in a parsable format. I once wrote such an extension as a demo.

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

Sidebar

Related Questions

Just started working with Mercurial a few days ago and there's something I don't
I started Android devlopment a few days ago and it's going great. I haven't
I started playing around with xtext a few days ago and just went through
I've started working with cocos2d few days ago...and im working on small 2d game.
I started using SourceTree a few days ago to manage Mercurial repositories with my
I am started using MongoDB few days ago. Everything is fine with MongoDB but
I started using vim/gvim for windows few days ago. I use notepad++ until now
few days ago I started to work on my own WebServices. I decided to
I just started learning Common Lisp a few days ago, and I'm trying to
I started to use Borland's Turbo C++ a few days ago. I actually have

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.