Tagged Questions
35
votes
6answers
8k views
How do I clone a sub-folder of a repository in Mercurial?
I have a Mercurial repository containing a handful of related projects. I want to branch just one of these projects to work on it elsewhere.
Is cloning just part of a repository possible, and is that ...
24
votes
2answers
2k views
How can I remove the working copy from a Mercurial clone?
When cloning a repository with mercurial you can pass the -U/--noupdate flag to create a clone with no working copy. Can I remove the working copy if I forget to pass this flag at clone time? And if ...
10
votes
4answers
7k views
Mercurial clone from a branch
We have a repository with three named branches, I wanted to clone one of the branches. Is there a mercurial command to do that? If I provide the path (of branch) with hg clone I get 404 error.
...
10
votes
1answer
4k views
Whats the Mercurial hg clone syntax to clone a repository to a folder on a local file system
Whats the Mercurial hg clone syntax to clone a repository to a folder on a local file system. Say I have a repository in C:\MyProject\ and I want to create a clone in G:\Version Control\MyProject\ - ...
8
votes
1answer
1k views
bitbucket: fork vs clone?
Using Mercurial with a private repository hosted at bitbucket. I need to add some new features to an application that will potentially end up being serious changes. I've been debating between ...
8
votes
3answers
1k views
Cloning github repo with hggit
I am trying to clone some github repos locally with hggit. I am following tutorial instructions to do
$ hg clone git://github.com/schacon/hg-git.git
abort: repository ...
7
votes
1answer
4k views
How can you clone a Mercurial repository as of a specific changeset?
How can you clone a Mercurial repository as of a specific changeset?
Ie: If the master repo has changesets 1-10, how can get a copy of the source as it existed in changeset #7?
7
votes
4answers
857 views
Is it possible to clone with hgsubversion in steps?
I'm trying to clone a rather large subversion repository with hgsubversion.
hg clone --startrev 8890 svn+https://my.reposit.ory/trunk trunk_hg
After about an hour, the clone operation aborts with ...
6
votes
1answer
430 views
Is there a way to provide self-hosted web-based forking of Mercurial repos like BitBucket/Kiln?
I'm currently using self-hosted SVN with Trac for a FOSS project, and am slowly moving to Mercurial. I've got HgWeb set up, so I can view the repository and check out over HTTP, but I'd like to be ...
6
votes
1answer
269 views
Is it safe to “branch” a local mercurial repository clone by just copying the entire directory?
If I have a rather large Mercurial project locally, and wish to experiment, can I safely just make a local copy of everything and work there?
For instance, let's say I do this:
Clone the repository ...
5
votes
3answers
1k views
Is 'pull' a synonym for 'clone' in a Mercurial source-control repository?
I'm seeing the command 'pull' and wondering how that's different from a 'clone'. Both terms seem to imply retrieving code from some remote repository. Is there some subtle distinction here?
5
votes
1answer
1k views
How to get hardlink cloning on Windows
I've got a Win7 x64 box running Tortoise 1.0 x64 release. About Tortoise reveals that it's 1.0 "with Mercurial-1.5, Python-2.6.4, PyGTK-2.16.0, GTK-2.18.7". I've also got ActivePython 2.6 and ...
5
votes
2answers
403 views
Cloning Mercurial Repositories from C#?
I am writing an application that will allow users to schedule repeating tasks that download/package up files from any number of sources (SVN/Mercurial/etc).
I have managed to implement everything ...
5
votes
4answers
1k views
How to get the tag changeset after you clone or pull to a tag using mercurial?
As the definite guide aptly points out (search for "Tags and cloning"):
When you run hg clone -r foo to clone a repository as of tag foo, the new
clone will not contain any revision newer than ...
4
votes
2answers
240 views
How to make local clone without pulling subrepos again?
I often work with Mercurial by keeping a local store of my upstream clones, and then just cloning again locally for my actual working environment:
$ cd /clones
$ hg clone ...