Mercurial – Finding old changes made easy

The other day, I wanted to find out if a function had ever existed in a file I was looking at. So, I brought up the history view, and started browsing through the various versions.

After the 3rd one, I figured there must be a better way…. then I remembered the DataMine feature of TortoiseHG (which I imagine is using Mercurial’s grep command).

So, enter my search criteria, and a file search patter. Do a search and up pops a list of files, lines and changesets that contain that information, throughout the entire history.

Obviously, this could be slow with a really broad search, but generally, it’s quite quick. Definitely much faster than manually searching throough all the revisions of a file.

It's only fair to share...
Share on FacebookGoogle+Tweet about this on TwitterShare on LinkedIn

Leave a Reply