[darcs-devel] in-repo branches

Ganesh Sittampalam ganesh at earth.li
Fri Feb 13 21:58:00 UTC 2015


On 13/02/2015 19:31, Ben Franksen wrote:

> I am now ready to admit that in-repo branches might not be such a bad idea 
> after all ;-)

I've felt the same for a while. There's some discussion on
http://darcs.net/Ideas/Branches

I also recently started hacking together a 'darcs stash' command along
similar lines to rebase which would allow patches to be temporarily
suspended but keep their identity when unsuspended, but the
implementation got a bit messy - really both rebase and stash need to be
implemented at the inventory level rather than as "embedded" patches.

> It would be much simpler to make sure everything compiles and 
> tests clean if I could quickly switch to another branch w/o having to create 
> a completely new repo each time (which also needs its own new cabal sandbox
> etc etc).

I keep all my darcs repos in a single subdirectory (e.g. darcs/screened,
darcs/reviewed etc) and use "cabal sandbox init=../cabal-sandbox".

Cheers,

Ganesh


More information about the darcs-devel mailing list