git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: RFD: git-bzr: anyone interested?

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
Feb 19, 2010, 07:49 UTC
Message-ID
<fabb9a1e1002182349h923d4acv55d9a41a249d4f51@mail.gmail.com>
In-Reply-To
<4B7E3856.3080609@gmail.com>
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@gmail.com> wrote:
Show 9 quoted lines
> 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.

Show 5 quoted lines
> 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
Previous: Gabriel FilionNext: Gabriel
Message 4 of 30 in “RFD: git-bzr: anyone interested?”
  1. Gabriel FilionFeb 18, 2010
  2. Sverre RabbelierFeb 18, 2010
  3. Gabriel FilionFeb 19, 2010
  4. Sverre RabbelierFeb 19, 2010
  5. GabrielFeb 19, 2010
  6. Sverre RabbelierFeb 19, 2010
  7. Writing git remote helpersGabriel, Feb 19, 2010
  8. Gabriel FilionFeb 22, 2010
  9. Ilari LiusvaaraFeb 19, 2010
  10. Gabriel FilionFeb 22, 2010
  11. Ilari LiusvaaraFeb 22, 2010
  12. Gabriel FilionFeb 23, 2010
  13. Ilari LiusvaaraFeb 23, 2010
  14. Chris PackhamApr 26, 2010
  15. Dmitrijs LedkovsApr 26, 2010
  16. Chris PackhamApr 27, 2010
  17. Miles BaderApr 27, 2010
  18. Gabriel FilionApr 27, 2010
  19. Dmitrijs LedkovsApr 27, 2010
  20. Chris PackhamApr 27, 2010
  21. Chris PackhamApr 27, 2010
  22. Dmitrijs LedkovsApr 27, 2010
  23. Conrad ParkerAug 6, 2010
  24. Miles BaderAug 7, 2010
  25. Gabriel FilionAug 7, 2010
  26. Miles BaderAug 7, 2010
  27. git-archimport (was: Re: RFD: git-bzr: anyone interested?)Jakub Narebski, Aug 7, 2010
  28. Matthieu MoyAug 7, 2010
  29. Felipe ContrerasFeb 20, 2010
  30. Gabriel FilionFeb 22, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.