Hi folks.

Please accept my apologies if this is a FAQ, I've done some searching
but found nothing so far.

I'm looking for a perl module which provides a programmatic interface to darcs.

I want to convert an svn repo over to darcs. I've tried using
'tailor', but the repo has undergone a few reorganisations (internal
directory moves) and so specifying a single--prefix doesn't meet my
needs.

Additionally, I don't think that converting the entire repo will work
for me either, I have tags/branches/trunks splits at a couple of
different levels in the repo, and I'd like to preserve at least the
tagging info.

It seemd as though the easiest thing to do would be to script
something up to meet my specific needs.

There is a nice set of bindings to svn from perl and I have just
started trying to wrap command-line darcs with a perl module interface
(I'm assuming that there is no C-linkage library interface given that
it is written in haskell).

I was looking at parsing the output of "darcs whatsnew -l" (which I'm
also having trouble finding documentation on, for what it's worth).
Then I realised that I was probably re-inventing a wheel and started
looking for existing modules.

I see that the darcs source has a test suite written in perl, but a
cursory look suggests that it is a direct "check the output matches
regexps" kind of interface, rather than something more programmatic:

my $changes = $darcs->whatsnew_summary;
foreach my $file ($changes->added) {
 # do something for each added file...
}

I'd appreciate any pointers to existing work in this area or advice on
this (or any docs on the 'whatsnew -s' format or suggestions on how to
make tailor track several directory changes and late addition of the
svn tags/branches/trunk setup).

regards,

jb
_______________________________________________
darcs-devel mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-devel

Reply via email to