On 27 Feb 2013, at 14:36, Owen Stephens <da...@owenstephens.co.uk> wrote:

>> I have a project I'd like to put on the site, but it's stored in darcs and 
>> hosted in a private repo on hub.darcs.net. What is the best way to sync a 
>> darcs patches into a git repo (the other way round being unnecessary)?
> 
> My first thought was: "why not just create a similar hook for darcs"?

In the end I just hacked together a very primitive script[1]. It commits too 
much into git (it can't tell when you've only recorded some of the hunks in a 
file), and it has no hope in hell of figuring out complex renames, but it 
handles additions and removals, and it's intelligent enough to avoid files not 
yet in the darcs repo, that it serves its purpose well enough.

In writing this I realised just how complex a complete, correct solution would 
have to be! I take my hat off to you for starting DarcsBridge :-)

Cheers
Ash

[1] https://gist.github.com/ashmoran/5052745

-- 
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashmoran

_______________________________________________
darcs-users mailing list
darcs-users@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to