[darcs-users] finding the patch where a line was removed
Daniel Burrows
Daniel_Burrows at alumni.brown.edu
Thu Nov 29 14:29:00 UTC 2007
On Wed, Nov 28, 2007 at 10:39:41AM -0500, Nathan Gray <kolibrie at graystudios.org> was heard to say:
> In order to find the patch where a line is added, one can easily
>
> darcs annotate FILENAME
>
> and find the name of the patch tied to the line in question.
>
> To find the patch where a line is removed, 'darcs annotate' is not
> quite as helpful, because the line is no longer printed out.
[snip]
> Anyone know of an easier way?
>
> How should this functionality best be implemented?
So, I've never done this, but I think you can get darcs to do
something like it with:
darcs trackdown "grep 'regexp' path/to/file"
According to the manual, that should tell you the most recent
repository version in which the grep succeeds.
Daniel
More information about the darcs-users
mailing list