Skip to content

FR: Support for gitremote-transport #10000

Description

@joerivanruth

Is your feature request related to a problem? Please describe.
I've been using a Git-Mercurial bridge to access a Mercurial repository using Git. Now I've mostly switched to jj but jj doesn't understand the Mercurial remote:

» git remote -v
origin	hg::ssh://hg@REDACTED (fetch)
origin	hg::ssh://hg@REDACTED (push)
» jj git remote list
Error: Failed to load configured remote origin
Caused by:
1: The fetch url under `remote.origin` was invalid
2: The url at "remote.<name>.url=hg::ssh://hg@REDACTED" could not be parsed
3: URL "hg::ssh://hg@REDACTED" is relative which is not allowed in this context

Great error message, by the way.

Describe the solution you'd like
I would like jj to understand gitremote-helpers so I can just jj git fetch.

Describe alternatives you've considered
As a workaround I use a colocated repository and fetch using Git.

Additional context
I'm not sure if jj really needs to parse the URL or if the relative-path check is simply a sanity check.
In the latter case, the presence of the :: in the URL could mark it as not-relative. If jj is really parsing the URL, more work is probably needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions