tags:

views:

342

answers:

2

Is it possible to update a directory to a specific revision without cloning the whole repository (local or on a central server) in Mercurial and how can I use it? This would be great, because to clone the whole repo first takes to much time for me and the folder really don't needs the whole repo. As example: default and the b2.3 branch from which I want to update.

Thanks in advance! :)

+1  A: 

clone is the preferred way to do it in Mercurial. It should take a minimal amount of time when done locally. I'm unaware of any other way to do it.

Search for "hard links" on this tutorial page for more info on the subject.

Mike
no here it takes to much time
Joschua
@Joschua: remember that you only need to do the full clone once. When you have all the history on your machine, then you can do 'hg clone -r b2.3 foo bar' to make a quick clone with only some of the history. The key point is that you don't have to contact the server again for the changesets you already have locally.
Martin Geisler
+3  A: 

You can pull a specific branch, say b2.3 by using hg clone -r b2.3 source-repo target-repo.

If you really need just a non-versioned copy of all the files in revision N, then for some web repositories you may download such a copy using their web interface.

Andrey Vlasovskikh