-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I got a question on my svn-darcs integration while I have to work with svn 
for my kde projects, and since his email bounces, plus that this will be 
interresting for more darcs users, I'll sent my reply here.  (hehe; so I 
did not write it for nothing :)

On Monday 4 July 2005 12:51, you wrote:
> Thomas,
>
> I see you post from kde.org and so you probably use svn for your kde
> hacking. Could you be so kind and tell me what's your experience with
> darcs/svn synchronizations? I assume you are also using darcs and then
> synchronize with svn. If so, do you use tailor script or something else
> for this?

well, kde has a svn history of about 10 years; I found it useless to
include that, so syncing it was a simple add all and commit prior to
hacking.

Let me explain that a little further.
If I start to work on a new patch in, for example, kmail I create a new
repository in the svn directory.
cd kdepim/kmail
darcs init
darcs add *.cpp *.h
darcs record -am "init"

- - From that moment I can work in darcs, using all its great features and
record a couple of times (since I like making micro commits to shorten my 
mental load) without problems.
At the end I make an svn commit from the same dir and then I simply do an 
rm -rf _darcs

Often I also do a backup of my patches to a clean directory, like so:
cd projects
darcs get kdepim/kmail kmail-with-foo-patch
cd kdepim/kmail
darcs unpull ; to remove the changes and get back to the unchanged-svn

The backup is then kept until I have spoken to some core developers on
problems I have been having, but in between I can work on new issues with 
a clean tree (no svn diffs). A simple pull gets me the changes back to 
continue working.

So; C++ and darcs don't work together (at least on my slow machine)
branching is cheap in darcs, but branching is incredibly expensive in
compile time for C++, and IMO not worth it.
For this reason I don't really have a need to keep a full darcs repo, and
I just create partials whenever I think I can use one.

Questions/suggestions are welcome :)
- -- 
Thomas Zander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCySwjCojCW6H2z/QRAnY7AJ9TPZ5d0kHxqkXD96ofenZl0nmjkACg9iN8
n3o4XLNjYRm/U0GdmmWORoM=
=iVpZ
-----END PGP SIGNATURE-----

_______________________________________________
darcs-users mailing list
[email protected]
http://www.abridgegame.org/mailman/listinfo/darcs-users

Reply via email to