Find all changed versions of a file

Steve Borho steve at borho.org
Mon Apr 12 12:51:42 CDT 2010


On Mon, Apr 12, 2010 at 12:27 PM, Trifusion <trifusion at gmail.com> wrote:
>
> I have been using Mercurial for about 9 months now and have several hundred
> commits. I now realize that at some point I changed a file and I would like
> to try and recover a particular version of only that file. Unforunately my
> commit messages are of no help and what I really need is a way to determine
> which commits had a changed version of the file and try each file manually
> until I get the correct version.
>
> Is there a way to recover all versions of a single file that have been
> commited maybe only 5 or 6 times during several hundred commits?
>
> If there is a link to documentation on this please post as I have gone
> through as much as I can find without any luck.

"hg log FILENAME" generates the list of commits that modify a file

"hg revert -r REV FILENAME" retrieves the file data for the specified revision

--
Steve Borho


More information about the Mercurial mailing list