I looked at the mercurial website, and I couldn't find a single link to the location of the mercurial source repository itself.
Do you know where it might me?
The official repository seems to sit at https://www.mercurial-scm.org/repo/hg/ or https://www.mercurial-scm.org/repo/hg-stable with different branches. More information is available at the Developer Repositories wiki page.
Both links are browsable online and can be cloned from:
hg clone https://www.mercurial-scm.org/repo/hg/
hg clone https://www.mercurial-scm.org/repo/hg-stable
Here is a link to the Source:
https://www.mercurial-scm.org/release/?M=D
The source release is available from the downloads page.
Related
How do you download a specific folder from a Mercurial repo? This is a similar question to partial cloning, but I don't want to actually create a local repo, since I won't be versioning these files. I just want to quickly download a specific folder containing a few KB worth of files from a repo that's several hundreds MB in size.
Specifically, I want to download all the entire "examples/plugins" folder from the Gazebo project.
I've tried searching hg's manpage and Google, but all my searches keep bringing me back to pages that assume I want to create a full repo and make a partial clone or narrow clone, which hg doesn't support.
If the Mercurial repository is running hgweb, it's possible to download a specific folder remotely. For example for the official hg repository, you can download https://www.mercurial-scm.org/repo/hg/archive/REVISION.tar.bz2/SUBPATH/.
Example: https://www.mercurial-scm.org/repo/hg/archive/19c5b0913960.tar.bz2/contrib/
This uses the 'hg archive' functionality Edward mentions, but through the web-interface.
Plugin with "pull-request" functionality for HG. Is there such plugin?
Pull requests are inherently a repository hosting-platform specific function, it isn’t something that can be added to Mercurial as an extension. How would you imagine that it should work?
If you’re looking for a Mercurial equivalent of GitHub pull requests; Bitbucket offers free Mercurial hosting and has pull request functionality.
There doesn't seem to be an extension directly named after that feature (the GitHub "Pull Request"), but you could emulate it through an integration with a review system, as described in "Review Board workflow for Mercurial repository".
The Mercurial Review Board extension (repo here) could be used to link your DVCS to ReviewBoard, helping you to only pull what has been reviewed.
I'm using dreamhost to host a django app, and also the static content for the app. I want to have my static content versioned together with my application code.
Because the dreamhost install of hg is version 1.0.1, to use subrepos at all, one must install ones own version of hg. I have done so.
Once that is done, it is sufficient to create a .hgsub file with the location pointing to another repo, then just add the .hgsub file.
Now, the problem I have is that I want to push to my bitbucket repository, but:
(a) I would need to upgrade my python to be able to use https; and
(b) trying ssh I get the following error:
pushing to ssh://hg#bitbucket.org/marcintustin/oneclickcos
pushing subrepo public to ssh://hg#bitbucket.org/marcintustin/public
remote: conq: repository does not exist.
abort: no suitable response from remote hg!
(To confirm, I have registered my ssh key with bitbucket.)
Any suggestions?
You need to make site a Mercurial repository. Then add a .hgsub file with
project = project
public = public
and make a commit in the site repository. You'll see that it creates and tracks a .hgsubstate file with the changeset hashes of project and public. Make a local clone of site and the subrepositories will follow along nicely.
If that is not enough help, then my suggestion is to read the output of hg help subrepos, the Kick Start guide, and the subrepository wiki page again.
If those guides do not help you along, then come talk to us in #mercurial on irc.freenode.net or on the mailing list. Your question is not very specific and I think it is much easier to discuss this on the proper support channels.
The official mercurial web page can't find the entry of official repository, only download links, where is it, thanks.
The official Mercurial page lists two repositories for getting the Mercurial source:
The hg-stable repository leads to stable releases.
The hg repository is the main development repository
If you need a mercurial repository, try bitbucket.org. If you're looking for the development snapshot of mercurlial try the developer repos.
I have a set of mercurial repositories being served online with hgwebdir.cgi. I would like to be able to show a graphical representation of the branches and merges in the same way that this site does. I can't seem to find any reference to how to do that though. Does the functionality only exist in hgweb and not hgwebdir?
This future will be enabled in next release, try use develop version from repo.
In console u can use glog extension
Until version 1.1 comes out (in a few days) you'd need to clone and install from the Mercurial crew respository