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

cli: support multiple --revision arguments to workspace add #2515

Merged
merged 2 commits into from
Nov 4, 2023

Conversation

thoughtpolice
Copy link
Contributor

Summary: A natural extension of the existing support, as suggested by Scott Olson. Closes #2496.

Change-Id: I91c9c8c377ad67ccde7945ed41af6c79

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

@thoughtpolice thoughtpolice self-assigned this Nov 3, 2023
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.

Thanks for fixing that so quickly

cli/src/commands/workspace.rs Outdated Show resolved Hide resolved
cli/src/commands/workspace.rs Outdated Show resolved Hide resolved
cli/src/commands/workspace.rs Outdated Show resolved Hide resolved
cli/src/commands/workspace.rs Outdated Show resolved Hide resolved
cli/tests/test_workspaces.rs Outdated Show resolved Hide resolved
cli/tests/test_workspaces.rs Outdated Show resolved Hide resolved
@thoughtpolice thoughtpolice force-pushed the aseipp/push-vruxzunvwysq branch 3 times, most recently from 0165324 to 01a209a Compare November 3, 2023 13:35
cli/src/commands/workspace.rs Outdated Show resolved Hide resolved
cli/src/commands/workspace.rs Outdated Show resolved Hide resolved
cli/src/commands/workspace.rs Outdated Show resolved Hide resolved
@thoughtpolice thoughtpolice force-pushed the aseipp/push-vruxzunvwysq branch from 01a209a to 71ee2e9 Compare November 3, 2023 18:15
@thoughtpolice
Copy link
Contributor Author

I also included a small refactoring on top.

@thoughtpolice thoughtpolice force-pushed the aseipp/push-vruxzunvwysq branch from 71ee2e9 to 2622663 Compare November 3, 2023 18:16
cli/src/commands/workspace.rs Outdated Show resolved Hide resolved
cli/src/commands/mod.rs Outdated Show resolved Hide resolved
@thoughtpolice thoughtpolice force-pushed the aseipp/push-vruxzunvwysq branch 2 times, most recently from acf8750 to 41a264c Compare November 3, 2023 19:13
Summary: A natural extension of the existing support, as suggested by Scott
Olson. Closes #2496.

Signed-off-by: Austin Seipp <[email protected]>
Change-Id: I91c9c8c377ad67ccde7945ed41af6c79
Summary: This is currently used by `new.rs`, `workspace.rs`, and `rebase.rs`,
and may be useful for other commands and custom CLIs. So just go ahead and move
it into the parent module hierarchy.

Also rename the function to `resolve_all_revs`, as it isn't actually specific to
rebase at all.

Signed-off-by: Austin Seipp <[email protected]>
Change-Id: I0ea12afd8107f95a37a91340820221a0
@thoughtpolice thoughtpolice force-pushed the aseipp/push-vruxzunvwysq branch from 41a264c to 962507c Compare November 3, 2023 19:21
@thoughtpolice thoughtpolice merged commit 17bcac6 into main Nov 4, 2023
14 checks passed
@thoughtpolice thoughtpolice deleted the aseipp/push-vruxzunvwysq branch November 4, 2023 15:26
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.

FR: jj workspace add could support multiple --revisions
2 participants