I'm splitting this off from issue1380; see msg7409 for details.
Norman Ramsey pointed out that darcs diff foo should not need to look at other
files than foo.
This is actually quite tricky to implement (I think). We would need some sort
of 'patch focusing' mechanism that restricts patches to just the interesting
bits, the difficulty being defining what those interesting bits are. The
problem is that (i) files can be renamed and (ii) that they may have parent
directories and (iii) that i and ii are recursive (ie. parent directories can be
renamed, etc). I suspect it's quite easy to get this wrong if we're not careful.
I also believe that the filecache optimisation work also has to deal with a
similar tracking problem, so I'm marking this bug as waiting for that to be
implemented.
|