I am looking for the mercurial equivalent of the solution to this question:
How do I "git blame" a deleted line?
In short, I am looking at a mercurial commit where a line was added, and in the current revision this line is no longer present, and I want to find when and why it was removed.
hg show 9876:tip path/to/file | grep --all "pattern" -U20
tohg grep -r 9876:tip "pattern" path/to/file
, which was just what I needed. If you give that as an answer I'll accept it. Originally I tried it without--all
, thinking that it was a substitute for the -r flag, but found that it only lists the first revision unless--all
is specified. – Valina