Skip to content

move RepoPathUiConverter to separate module - #9893

Open
martinvonz wants to merge 2 commits into
mainfrom
mz/zkkuktwuzyrl
Open

move RepoPathUiConverter to separate module#9893
martinvonz wants to merge 2 commits into
mainfrom
mz/zkkuktwuzyrl

Conversation

@martinvonz

Copy link
Copy Markdown
Contributor

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added/updated tests to cover my changes
  • I fully understand the code that I am submitting (what it does,
    how it works, how it's organized), including any code drafted by an LLM.
  • For any prose generated by an LLM, I have proof-read and copy-edited with
    an eye towards deleting anything that is irrelevant, clarifying anything
    that is confusing, and adding details that are relevant. This includes,
    for example, commit descriptions, PR descriptions, and code comments.

I'm about to move this type to a new module and would like the new
module to not have `#![expect(missing_docs)]` in the new module.
The `RepoPathUiConverter` type should perhaps not be moved to the
coming `jj-core` crate, so this patch prepares for moving `RepoPath`
to the crate without leaving a `repo_path` module without `RepoPath`
behind.
@martinvonz
martinvonz requested a review from a team as a code owner August 1, 2026 04:48
@martinvonz martinvonz mentioned this pull request Aug 1, 2026
6 tasks

@yuja yuja left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The RepoPathUiConverter type should perhaps not be moved to the coming jj-core crate,

Splitting modules makes sense, but I'm not sure about this. If we're going to move revsets and filesets to jj-core, we'll also need to move some form of parse_file_path(str) -> RepoPath interface.

Comment thread lib/src/ui_path.rs
}

#[test]
fn test_split_common_prefix() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test shouldn't be moved to ui_path.rs.

@martinvonz

Copy link
Copy Markdown
Contributor Author

I figured we'd move revsets and filesets but that we would try to leave the parsing functions in jj-lib, but maybe that's not the case. I haven't thought much about how feasible that is. @PhilipMetzger: What is your plan for that?

@PhilipMetzger

Copy link
Copy Markdown
Contributor

@PhilipMetzger: What is your plan for that?

RepoPathUiConverter is moved into jj-core in PhilipMetzger@a554727, so doing this won't help unless we figure out a better boundary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants