Skip to content

[Graphite] Add support for this cursed tool to track#221

Open
gbalke wants to merge 1 commit intoSkydio:mainfrom
gbalke:main
Open

[Graphite] Add support for this cursed tool to track#221
gbalke wants to merge 1 commit intoSkydio:mainfrom
gbalke:main

Conversation

@gbalke
Copy link
Contributor

@gbalke gbalke commented Jan 26, 2026

I don't really want to talk about how graphite manages metadata... I did what had to be done to make this work.

Signed-off-by: Greg Balke greg@physicalintelligence.company

Topic: make_stacks_work_in_graphite
Reviewers: jerry

I don't really want to talk about how graphite manages metadata... I did
what had to be done to make this work.

Signed-off-by: Greg Balke <greg@physicalintelligence.company>

Topic: make_stacks_work_in_graphite
Reviewers: jerry
@gbalke gbalke force-pushed the main branch 2 times, most recently from a2ac8e7 to 7d7d691 Compare January 26, 2026 21:12
@gbalke
Copy link
Contributor Author

gbalke commented Jan 26, 2026

@aaron-skydio if you have time to give a quick pass 🙏

@aaron-skydio
Copy link
Contributor

This makes sense to me, but I'm probably not going to make a new release until @jerry-skydio 's back either way - does it help you to have this in main before then or can it just wait for Jerry?

@gbalke
Copy link
Contributor Author

gbalke commented Jan 26, 2026

Yeah I can wait for jerry. Thanks for looking. I just wanted it in main so I could build a devblob equivalent locally that's targetting something that's on mainline.

upload_parser.add_argument("--uploader")
upload_parser.add_argument(
"--branch-format", choices=["user+branch", "user", "branch", "none"], default="user+branch"
"--branch-format",
Copy link
Collaborator

Choose a reason for hiding this comment

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

divisors? that doesn't really make sense maybe you mean dividers?

although i think the choice of divider character is actually orthoganal to branch format, which defines what things are incorporated into the name. ie you could use underscores with user+branch, user, branch, etc.

i think what this actually needs is a new argument that is "--branch-divider" defaulting to "/". you can of course set it to anything (although maybe it makes sense to use a different default if graphite is enabled)

Graphite closes/deletes branches instead of merging, so we need to
rebase to clean up local history.
"""
logging.info("Fetching and rebasing to drop already-merged commits")
Copy link
Collaborator

Choose a reason for hiding this comment

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

i'm a bit confused by this -- why doesn't "git pull --rebase" work? "revup upload" has always operated on the invariant that an upload does not change your local working state, so i don't think uploading should do a rebase for you -- that should be a separate thing done by the user since it could result in conflicts, trash your build state, take a long time, etc

@jerry-skydio
Copy link
Collaborator

jerry-skydio commented Feb 3, 2026

this needs significantly more detail in the PR message. I need to know how graphite works (at least somewhat basically) in order to do this review. if graphite does not provide open source docsyou can link to, i need a summary in the PR body.

its fine for you to make any changes you need in your fork, but remember that by submitting to an open source project you're asking that project to adopt and maintain your changes essentially forever, so the standards for documentation are much higher than for an internal change

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

Comments