Heya, [please do not cull the cc list, it is considered rude on this list] On Fri, Feb 19, 2010 at 08:05, Gabriel Filion <lelutin@xxxxxxxxx> wrote: > On 2010-02-18 13:37, Sverre Rabbelier wrote: >> If you're interested have a look at >> Documentation/git-remote-helpers.txt, and read the mailing list >> archives on the subject. > > The Documentation/git-remote-helpers.txt file wasn't really of much help > .. It really only barely scratches the subject, but it does not mention > how remote-helpers really work internally (e.g. how do they get called: > based on protocol used in URLs?) True, I hope to document that better when I submit my git-remote-hg implementation. > I'm still trying to dig up information about how to actually build, test > and use a remote helper. I'll probably be reading code for examples. Perhaps you could benefit from looking at my git-remote-hg code so far, I'll put it up on github [0] today as 'remote-hg'. If you're too soon you'll see commit 21215675c as the head, which isn't that useful, in that case just look again later :P. > Another detail hit me: external interaction in git seems like it's > almost always using librairies. If I'm not mistaken, bzr does not have a > separate library. So to have access to it's API, you need bzr to be > installed. This is why the current git-bzr script is using bzr + > bzr-fastimport plugin to do the job. That is part of the reason why the remote-helpers are implemented as separate programs, so that whatever backend they interact with does not become a dependency of git itself. > Is it normal / acceptable for a remote helper to have such dependancies? Yes, git-remote-hg depends on mercurial being installed. > And for the language used, maybe python could be logical if I can bind > directly to Bazaar's API. Tell me what you think about this. Yup, that would make sense, you could put your code in /git_remote_helpers/bzr/, alongside with the to-be-added /git_remote_helpers/hg and /git_remote_helpers/cvs. [0] http://github.com/SRabbelier/git -- Cheers, Sverre Rabbelier -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html