Hi Ash, > 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"? > I'd like syncing to work on-demand, rather than automatically. I amend-record > patches quite often, so I'd like them to sync when I'm happy with them, > rather than immediately. (If you're using the Git hook script that Startups > Manchester generates, commits are broadcast immediately.) I'd almost > certainly send commits to Startup Manchester the same time I pushed them to > Darcs Hub. So this sounds like a nice use-case for having user-configurable hooks on Darcs Hub. I'm not sure if they exist at all, currently? > The DarcsGit page[2] says the project is effectively broken, so that's > presumably no help. Indeed so. I don't recall much about the implementation but I remember performance being a problem --- I don't think DarcsGit kept two versions of a given repository (one git and one darcs) so repeated work presumably killed it. > Has anyone solved this before? The fact DarcsGit was made suggests it has > been needed before, but maybe nobody is doing it at the moment? Since my GSoC project[1] in '11 (eek, ages ago!) I've been trying to implement darcs-bridge, which keeps two separate copies of a repo, in git and darcs format, and syncs commits/patches between the two. It's not currently in a working state unfortunately, though I keep promising I'll find time to work on it more. Anyway, it feels like a very heavy-weight solution to create a full repo clone in git, just to hook into some git post-hook. I think investigating the posthook on Darcs Hub approach is better. Cheers, Owen. [1]: http://darcs.net/DarcsBridge _______________________________________________ darcs-users mailing list darcs-users@darcs.net http://lists.osuosl.org/mailman/listinfo/darcs-users