Skip to content

HunkBlame.py Operation #103

Description

@mfenner1

Hi folks, a couple questions:

It appears that HunkBlame.py assigns the blame of a particular (fixing) hunk to a particular commit. Any thoughts on getting from the commit down to a file (and maybe down to a hunk)? (From a fix_hunk F, we know the file so we should be able to look it up in the commit. Finding a specific bug_hunk B within that file might be more difficult?)

Is HunkBlame only assigning a blame for the first hunk in a given commit? At least in one test project, that seems to be what it is doing for me. Thoughts on getting it to work through all hunks in a commit? I'm looking at the break (near line 48) in the BlameContentHandler.line and wondering if that drops out too soon.

Thanks and best,
Mark

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions