22

In tortoisehg, how do I view a file's history? Much like as the repo explorer, but instead of viewing the whole repo, I would like to view only a specific file's history.

Thanks!

ctrl-alt-delor
  • 7,506
  • 5
  • 40
  • 52
radztech
  • 439
  • 1
  • 6
  • 14
  • Possible duplicate of [How to view revision history for Mercurial file?](http://stackoverflow.com/questions/3459161/how-to-view-revision-history-for-mercurial-file) – John Y Jul 05 '16 at 14:44

2 Answers2

39

You can view the changes on a file by the following command:

hg log -f file_path

You can see more options by typing hg log --help

DJMcMayhem
  • 7,285
  • 4
  • 41
  • 61
Shraddha
  • 2,337
  • 1
  • 16
  • 14
24

You can use TortoiseHg, right click, view history. I think within the repo explorer/workbench you can go into file view mode and do the same from there

Antony Scott
  • 21,690
  • 12
  • 62
  • 94
  • 2
    I tried this and I did not nitice it immediately. Right click the file -> view history. The main window listing the changeset will refresh/update and show only the changesets where the file was modofied. Thanks! – radztech Sep 10 '11 at 04:53
  • 2
    This is a good answer specific to TortoiseHg, but really either the other answer should be accepted or the question ought to be edited to ask how it's done with TortoiseHg. – Mike S. Sep 17 '12 at 17:37