First draft for clone -u
Adrian Buehlmann
adrian at cadifra.com
Wed Oct 21 20:22:21 UTC 2009
On 21.10.2009 22:02, Bryan O'Sullivan wrote:
> On Wed, Oct 21, 2009 at 12:37 PM, Adrian Buehlmann <adrian at cadifra.com
> <mailto:adrian at cadifra.com>> wrote:
>
> I started trying to add option -u to the clone command.
>
>
> It would be good to know what the difference is between this and -r. I
> think I can see it, but it needs explaining anyway.
Probably the most interesting aspect is that -u does not
imply --pull, so it can be used for fast "hardlink-cloning".
-r pulls only a specific revision into the clone, "stripping"
everything else.
Not specifying -r gives you a full clone, having all revisions
from all branches.
-u can then be used to say what to check out in case of
a full clone.
So you don't have to resort to using -r.
Looks like the help text of clone will get a bit longer...
(suggestions -- or even better patches --- for updating the help
text would be most welcome)
More information about the Mercurial-devel
mailing list