Skip to content

Conversation

@ningjiang
Copy link

Normally we would only blacklist the upstream branch we're working on if
patch-id changed after a successful cherry-pick. Thus we can still port
the patch to other branch in the future.

This is an initial attempt. Please help to review and give feedback.

…y-pick

Normally we would only blacklist the upstream branch we're working on if
patch-id changed after a successful cherry-pick. Thus we can still port
the patch to other branch in the future.
"git show --notes" will return 141 when file contents are very long
and you enter 'q' command.

safe_run will fail because of it and will give the following error:
git show --notes $sha1 failed! Aborting.

Hence we couldn't use safe_run for this command.
Copy link
Owner

Choose a reason for hiding this comment

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

Yeah, finding the upstream branch name is the difficult bit :-( I don't know how to do it without an interface redesign.

Copy link
Author

Choose a reason for hiding this comment

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

An interface redesign is much better. We can use git cherry-menu like this:

git icing -v3 upstreaming_branch master_branch | git cherry-menu upstreaming_branch

or redirect the stdin from file:

git icing -v3 upstreaming_branch master_branch >porting_list; git cherry-menu upstreaming_branch <porting_list

The latter case also gives us the ability to modify the list for automatically blacklisting all the commits in it. For example, we can add --auto-blacklist option. Then git cherry-menu can blacklist all the commits in porting_list automatically.

Copy link
Owner

Choose a reason for hiding this comment

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

Piping the cherry-pick "TODO list" into git cherry-menu is what I originally wanted to do, but it's not possible like that, because git cherry-menu requires STDIN to be the tty so that it can work interactively. If you can figure out a way to make it work then I'd welcome the pull request!

@aspiers aspiers self-assigned this Oct 2, 2016
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