views:

45

answers:

1

I'd like to know if there is some tool to monitor changes that a patch does to a project.

I have a source code repository, and I'd like to do things like:

  1. see what a patch changes in (text) output of an arbitrary program, eg. compiler output, or testsuite output etc. when applied
  2. given a line in some of these outputs, I'd like to bisect the history and find the change that introduced, or changed, this particular line (eg. a specific warning in compiler output)

I don't want to store the information in the repository, because it would clobber my patches (produced from the repository), and it would risk the info to be out of date (eg. rebases), or create unnecessary problems (eg. merges).

I'd like it to work with arbitrary programs, that were possibly unknown when the changes were made (eg. a new static source code checker, a new compiler version that adds a new warning, a new architecture to run tests on). Also, I'd like to quickly review a patch (eg. how much does this new testcase raise test coverage) in some UI.

I use git, but I'd like to hear about tools for others too.

A: 

Have you looked at git bisect?

yangyang
Bazaar has bzr-bisect as plugin, Mercurial has hg-bisect built-in (previously as hbisect extension).
Jakub Narębski
I have looked at git bisect, but it solves the problem only partially. You still have to somehow compare the outputs and determine if a line was changed (a perl script could do it). But what I was thinking about was rather some dashboard which could display differences to text outputs of arbitrary commands.
jpalecek