Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cherry_picker doesn't support forward-porting to master #289

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

Closed
larryhastings opened this issue Sep 13, 2018 · 2 comments
Closed

cherry_picker doesn't support forward-porting to master #289

larryhastings opened this issue Sep 13, 2018 · 2 comments

Comments

@larryhastings
Copy link
Contributor

% cherry_picker <hash> master caused cascading exceptions:

Traceback (most recent call last):
File "/home/larry/lib/python3.7/site-packages/cherry_picker/cherry_picker.py", line 463, in version_from_branch
return tuple(map(int, re.match(r'^.(?P\d+(.\d+)+).$', branch).groupdict()['version'].split('.')))
AttributeError: 'NoneType' object has no attribute 'groupdict'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/larry/bin/cherry_picker", line 11, in
sys.exit(cherry_pick_cli())
File "/home/larry/lib/python3.7/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/home/larry/lib/python3.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/larry/lib/python3.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/larry/lib/python3.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/larry/lib/python3.7/site-packages/cherry_picker/cherry_picker.py", line 412, in cherry_pick_cli
cherry_picker.backport()
File "/home/larry/lib/python3.7/site-packages/cherry_picker/cherry_picker.py", line 269, in backport
for maint_branch in self.sorted_branches:
File "/home/larry/lib/python3.7/site-packages/cherry_picker/cherry_picker.py", line 81, in sorted_branches
key=version_from_branch)
File "/home/larry/lib/python3.7/site-packages/cherry_picker/cherry_picker.py", line 465, in version_from_branch
raise ValueError(f'Branch {branch} seems to not have a version in its name.') from attr_err
ValueError: Branch master seems to not have a version in its name.

@Mariatta
Copy link
Member

GitMate.io thinks possibly related issues are #149 (pip install does not work for cherry_picker), #270 (Teach cherry_picker to forwardport to master), #140 (Move cherry_picker over to flit), python/blurb#2 (blurb does not support command line options in EDITOR/GIT_EDITOR), and python/devguide#3 (Add Travis support).

@larryhastings
Copy link
Contributor Author

GitMate.io is right, this is a duplicate of #270.

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

No branches or pull requests

2 participants