How to find who removed a line ?
Patrick Mézard
patrick at mezard.eu
Fri Apr 27 14:22:30 UTC 2012
Le 27/04/12 16:09, praveen_m86 a écrit :
> I have a scenario where a set of codes got removed from the default trunk.
> How do i identify the changeset that removed the line ? Though I identified
> the changeset that removed the line, it was a painful process. The reason
> was hg log of the file would actually show me the list of all the changesets
> in which the fie was committed and the file never got committed in the
> default trunk, it was only delivered to the main trunk. In this case I had
> different branches which didn't deliver their modifications to the same file
> to the main trunk. So a hg log file command that displays changesets with
> respect to a branch, showing changesets of other branch whose content are
> delivered to the default branch would be ideal.
>
>
> Had it been a modified line hg annotate would have solved the problem. But
> this was a removed line.
>
> Is there a command that displays log between 2 changesets with diff between
> then... (Not the whole diff, but changeset wise diff between them)
>
> hg log 10:15 (diff between 10-11,11-12,12-13,13-14,14,15)
Try with:
$ hg grep -a "pattern to match your line" yourfile
--
Patrick Mézard
More information about the Mercurial
mailing list