[darcs-users] Another apology of switch
Juliusz Chroboczek
jch at pps.jussieu.fr
Mon Sep 20 17:38:35 UTC 2004
In
http://www.abridgegame.org/pipermail/darcs-users/2004-July/002351.html
I argued for a new |darcs switch|n command, which I'm unfortunately not
competent to implement myself. I'm missing it again, I thought I'd
send a friendly reminder to the list.
A project I'm following (called ``darcs'') has just split into stable
and unstable branches. I'm going to |darcs get http://foo/unstable|
straight away.
Which is of course silly, because it's going to copy three bazillion
patches over the 'net, 99.99% of which I already have a perfectly good
copy of in /usr/local/src/stable). Instead, I should be doing
cd /usr/local/src
darcs get stable
mv stable_0 unstable
cd unstable
darcs switch http://foo/unstable
As an extra benefit, this would allow me to get a hard-linked copy of
the 99.99% of common patches.
There are other ways to fix this particular issue, one of which I'm
actually planning to implement at some point (|darcs get --sibling|,
and |darcs optimize --sibling|, the latter being the equivalent of
|bk relink|). But this example shows once again what a useful tool is
|darcs switch|.
Juliusz
More information about the darcs-users
mailing list