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

Use FILESETS/REVSETS for placeholders in command synopsis #5133

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

martinvonz
Copy link
Member

Thanks to @fowles and @yuja for the inspiration.

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

@cenviity
Copy link
Collaborator

Should we also change the accompanying doc comments then, e.g. path(s) / file(s) → fileset(s), revision(s) → revset(s)?

cli/src/commands/file/show.rs Outdated Show resolved Hide resolved
cli/src/commands/absorb.rs Outdated Show resolved Hide resolved
This should help clarify that the arguments are not just simple paths
(assuming `ui.allow-filesets` is not disabled).
This should help clarify that the arguments are not just simple change
ids or commit ids.
@martinvonz
Copy link
Member Author

Should we also change the accompanying doc comments then, e.g. path(s) / file(s) → fileset(s), revision(s) → revset(s)?

Yes, we should probably basically replace all "paths" by "paths matching these filesets" and "revisions" by "revisions matching these revsets". I'll try to remember to do that in a followup. I think this PR is an improvement on its own, and I should get back to the copy-tracking design.

@martinvonz martinvonz enabled auto-merge (rebase) December 18, 2024 16:02
@martinvonz martinvonz merged commit 822f016 into main Dec 18, 2024
31 checks passed
@martinvonz martinvonz deleted the push-nqummxmyuvtl branch December 18, 2024 18:13
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.

4 participants