-
Notifications
You must be signed in to change notification settings - Fork 48
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
KeyError in blame_hunk #50
Comments
Is there any feedback available on the status of this bug? My exception isn't quite identical and since I used --recurse the conditions aren't quite the same, but what I get is:
My command:
from which I get about 20 pairs of commit IDs before the traceback. W/o the |
After adding a bit of debug logging, what I found is that hunk.lines has the gratuitous extra line added matching: "\n\ No newline at end of file" which I presume is because the file in git didn't end with "\n" I added filtering for that string to the loop and that prevents the exception ... though now I'm getting what seems to be an impossibly long list of dependencies. |
Cool, thanks!! Haven't had time to check yet but I would guess that if you are getting an impossibly long list then it's because you're using |
Long list ... yes I hacked in a change to read the excludes from a file where the excludes were obtained from "git log" on the branch I'm backporting to. The list now reflects what I tend to expect. Only a couple hundred commits. |
Sounds like an interesting change - feel free to submit a PR ;-) |
Also, would be very grateful if you could provide the patch which fixes the original |
will do both when I have completed this major backport ... I'll have more confidence then that what I've done is complete .... The current patch for the keyerror:
I inserted the two lines following "for line in hunk.lines. This is a hack and I didn't spend any time walking backwared to the creation of the hunk list where this would have been more appropriate. |
I ran into some bug (on openSUSE-13.2 and Factory) using:
git clone git://github.com/openstack/python-keystoneclient.git cd python-keystoneclient/ git-deps 3d6d749e6f0fef682a88758e1a2f6c9e8e7bd23c
this produced
The text was updated successfully, but these errors were encountered: