In mercurial how can I find changesets that contain a string?
问题 Let's say I have the following revisions: rev 1: + Dim Foo as integer rev 2: + I like big butts, I cannot lie rev 3 - Dim Foo as integer Foo is in rev 1 & 2, and removed from three. What command can I issue that will return all changesets that Foo was added or deleted? Ideally I'd like to be able to do this from toroisehg as well 回答1: You can use the grep command : hg grep --all Foo To address Lazy Badger concerns in comments. $ hg init $ echo "Dim Foo as integer" > test $ hg commit -m "1" $