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

Re: Announcing a new (prototype) git-remote-hg tool

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 5, 2014, 23:13 UTC
Message-ID
<20141205231330.GL16345@google.com>
In-Reply-To
<20141205225930.GA29256@peff.net>
Jeff King wrote:
> One of the nice things about spinning remote-hg out of the core repo is
> that it means we do not have to endorse a particular implementation, and
> they can compete with each other on their merits.
True.
[...]
> It's a shame that both squat on the name "remote-hg", because it makes
> it difficult to tell the two apart. But of course that is the only way
> to make "git clone hg::..." work. Maybe we need a layer of indirection?
> :)

If the helpers are roughly interchangeable (that is, if you can switch between fetching using each one into the same on-disk git repository), then picking one to symlink as git-remote-hg in your $PATH should be enough.

If they don't have that level of interoperability, then there's an argument to be made that the URLs shouldn't be the same. Unfortunately url.*.insteadof rules are resolved at fetch time instead of being resolved once and the result recorded in .git/config. So yes, it seems like a way to have abbreviations for URLs (e.g., hg:: meaning hg+mh:: or hg+fc::) that get resolved at clone time would be useful. It's a layer of indirection we don't provide. :/

Thanks, Jonathan

Previous: Jeff KingNext: Mike Hommey
Message 4 of 9 in “Announcing a new (prototype) git-remote-hg tool”
  1. Mike HommeyDec 5, 2014
  2. Jonathan NiederDec 5, 2014
  3. Jeff KingDec 5, 2014
  4. Jonathan NiederDec 5, 2014
  5. Mike HommeyDec 5, 2014
  6. Jeff KingDec 6, 2014
  7. Mike HommeyDec 5, 2014
  8. Philip OakleyDec 5, 2014
  9. Announcing git-cinnabar 0.1.0 (Was: Announcing a new (prototype) git-remote-hg tool)Mike Hommey, Feb 11, 2015

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.