I would like to browse interactively through all changes made to a
specific file. The command
darcs changes -i --only-to-files the/file/i/am/interested
offers me the patches that made some changes to
the/file/i/am/interested. But if I display the changes in full (by
hitting 'x' in the dialog), I not only see the changes made to the
specific file but all changes of the patch.
I would expect to see only the changes to the/file/i/am/interested.
I've attached a possible regression test.
One thing to watch out for when fixing this is that it works properly even when the file has
been renamed. So for example you should be able to do darcs changes --only-to-files
/current/name of file and see the changes to the file even before it was renamed.
I haven't checked if the current code does actually even select the right patches in this
situation, but if it doesn't, it ought to!
I think there may also be more advanced options where you can specify a file by its name at
some point in the past, so worth having a quick check on that.
The following patch sent by Sebastian Fischer <firstname.lastname@example.org> updated issue issue2270 with
* resolve issue2270: fixed darcs changes -i --only-to-files
`darcs changes --interactive --only-to-files` now only shows changes
to relevant files.
The options `--interactive` and `--verbose` now use the same filtering
code in presence of `--only-to-files`, so interactively shown changes
are the same as verbosely shown changes: with `--only-to-files` only
changes to the listed files are shown, without this option all changes
to files recorded together with listed files are shown.