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

Drop support for legacy graph drawing, add support for synthetic nodes for elided revisions #3027

Merged
merged 3 commits into from
Feb 13, 2024

Conversation

martinvonz
Copy link
Member

I hope to enable this by default, so please enable it and see how you like it

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

@martinvonz martinvonz force-pushed the push-ltrzrlomyqpy branch 2 times, most recently from 00cb12d to ada6b5b Compare February 12, 2024 05:56
Copy link
Contributor

@yuja yuja left a comment

Choose a reason for hiding this comment

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

Nice.

cli/src/graphlog.rs Outdated Show resolved Hide resolved
cli/src/commands/log.rs Outdated Show resolved Hide resolved
cli/src/commands/log.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@yuja yuja left a comment

Choose a reason for hiding this comment

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

Thanks!

cli/src/commands/log.rs Outdated Show resolved Hide resolved
@martinvonz martinvonz enabled auto-merge (rebase) February 13, 2024 01:25
The "curved" style has been the default for a long time now.
I don't think anyone uses the legacy graph style. It's very similar to
the "ascii" style from Sapling's `renderdag` crate.
This adds a config to render a synthetic node with a "(elided
revisions)" description for elided segments of the graph.

I didn't add any templating support for the elided nodes because I'm
not sure how we would want that to work. In particular, I don't know
what `commit_id` and most other keywords should return for elided
revisions.
@martinvonz martinvonz merged commit 2701791 into main Feb 13, 2024
15 checks passed
@martinvonz martinvonz deleted the push-ltrzrlomyqpy branch February 13, 2024 01:33
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.

2 participants