Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is clone the only way to get contents of a Mercurial repository?

Tags:

mercurial

I am trying to get the sources for Netbeans IDE by running:

hg clone http://hg.netbeans.org/main/

However, this seems to be taking forever, and it does not give me any kind of status which tells me the percent of download that's complete. If a lose my internet connection, I have to start all over again.

I realize that Mercurial is a distributed source control system, and perhaps the 'clone' command is taking this long because it is getting the entire history of all the files (is this correct?)

When we get sources from CVS we usually get the source without the entire history. Is it possible to do something like this with Mercurial?

like image 493
Parag Avatar asked Feb 12 '09 12:02

Parag


People also ask

How does Mercurial work?

Mercurial groups related changes to multiple files into single atomic changesets, which are revisions of the whole project. These each get a sequential revision number. Because Mercurial allows distributed parallel development, these revision numbers may disagree between users.

What is mercurial repo?

What Is Mercurial? Mercurial is a free, distributed version control system. It's also referred to as a revision control system or Mercurial source control. It is used by software development teams to manage and track changes across projects.


1 Answers

Mercurial's hgweb can be configured to allow download of snapshots, e.g.,

Make sure that your repository's .hg/hgrc file (or the /home/user/.hgrc file) contains the allow_archive setting:

[web]
allow_archive = gz, zip, bz2

This example illustrates how gzip, zip and bzip2 archive formats can be supported. As a result, links should appear in the Web interface corresponding to these archive types.

However, it does not look like the repository you are trying to download allows this mode of operation. You might request that they add it.

like image 194
Emil Sit Avatar answered Jan 01 '23 19:01

Emil Sit