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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:56:32+00:00 2026-05-20T07:56:32+00:00

does Mercurial have an HTTP protocol we could browse files/folders/branches instead of clone/pull changesets?

  • 0

does Mercurial have an HTTP protocol we could browse files/folders/branches instead of clone/pull changesets?

I’ve seen something using TortoiseHG WebServer and access http://localhost:8080/ using browser but completely different HTML is served when you use project on https://bitbucket.org/ (at least I could not find the same representation).

Update the HttpCommandProtocol document describes only changesets but not files/folders. So, the task is to download only few files only for particular revision (for example with tip ‘stable’) and a list of files. However I do not want to download a complete repository for this.

Non HTTP protocols are welcome but conditions are the same: do not download a complete repository.

Update 2 hgweb serves static HTML and files. Is it always the same HTML fromat for different hgweb versions? What about bitbucket.org? Is there any common protocol?

  • 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-20T07:56:33+00:00Added an answer on May 20, 2026 at 7:56 am

    As you noticed already, the HttpCommandProtocol defines the exchange of repository information and changesets – it ensures that you can clone/push/pull from/to any repo served by HTTP. But AFAIK there’s no standard for how to browse a repo (e.g. getting a single file of a certain revision).

    You’ll have to adapt to whatever URL scheme your hosting system of choice uses (as you also noticed, hgweb and bitbucket have different schemes). Depending on your use case you could define your own file access protocol and feed it to an converter.

    For instance you might want to access files with this scheme:

    <repo-url>/<rev>/<path>
    

    Where <repo-url> is the URL you use to clone/push/pull. In practice you would then use URLs like that:

    https://bitbucket.org/user/repo/<rev>/<path>
    https://hgwebhost.org/.../repo/<rev>/<path>
    

    Obviously these are virtual URLs which do not exist. That’s where your converter comes in: check the hosting system type and convert URLs accordingly:

    https://bitbucket.org/user/repo/raw/<rev>/<path>
    https://hgwebhost.org/.../repo/raw-file/<rev>/<path>
    

    If your converter knows bitbucket and hgweb, then it already works with a good deal of repositories out there.

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

Sidebar

Related Questions

Does anyone have a working, step-by-step example of how to implement IEnumerable and IEnumerator
Does Windows Phone 7 have anything like iPhone's UITableView? [Basically, I'm porting an iOS
We just changed over to mercurial from subversion and there is one thing that
When I macfusion into my ubuntu VM, and hg clone something from bitbucket -
I installed Mercurial on my Mac, and it's wonderful. For me it's easier to
Does anybody know a way to create a keyboard shortcut for the button 'Expand
Does anyone know is there a better way to check if some image contain
Does anyone know the function of the command vmware-vim-cmd vimsvc/connect (vimid). I thought that
does the function set::insert saves a pointer to the element or a copy of

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.