Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workspace: turn WorkspaceLoader into a trait #4362

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

torquestomp
Copy link
Contributor

Similar to other changes, this small API change allows extensions to take over repo and working copy loading entirely when the factory types cannot be obtained through the local filesystem.

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 tests to cover my changes

Copy link
Member

@martinvonz martinvonz left a comment

Choose a reason for hiding this comment

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

I'll let a non-googler approve as usual

cli/src/cli_util.rs Show resolved Hide resolved
cli/src/cli_util.rs Outdated Show resolved Hide resolved
@torquestomp torquestomp force-pushed the dploch/workspace-loader branch from 3fe55f0 to 3b65247 Compare August 30, 2024 00:12
Copy link
Contributor

@PhilipMetzger PhilipMetzger left a comment

Choose a reason for hiding this comment

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

LGTM

lib/src/workspace.rs Outdated Show resolved Hide resolved
cli/src/cli_util.rs Show resolved Hide resolved
lib/src/workspace.rs Show resolved Hide resolved
@torquestomp torquestomp force-pushed the dploch/workspace-loader branch from 3b65247 to dab3a39 Compare August 30, 2024 17:20
@torquestomp torquestomp enabled auto-merge (rebase) August 30, 2024 17:20
Like #4189, this allows extensions the ability to load the repo in an environment where the local filesystem is not accessible. This change allows such extensions to exist at the CLI layer where jj is invoked as a subprocess, rather than a library (common in testing).
@torquestomp torquestomp force-pushed the dploch/workspace-loader branch from dab3a39 to bfefab2 Compare August 30, 2024 17:22
@torquestomp torquestomp merged commit f963af3 into main Aug 30, 2024
31 checks passed
@torquestomp torquestomp deleted the dploch/workspace-loader branch August 30, 2024 17:35
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