Find all changed versions of a file

Greg Robertson trifusion at gmail.com
Mon Apr 12 15:05:40 CDT 2010


Two excellent answers. Not sure which I will use but great info that
is going to really come in handy to track down the problem I am
looking for.

Thanks

Greg


On Mon, Apr 12, 2010 at 3:35 PM, Anton Markov <anton.markov at gmail.com> wrote:
>> -----Original Message-----
>> From: mercurial-bounces at selenic.com [mailto:mercurial-
>> bounces at selenic.com] On Behalf Of Steve Borho
>> Sent: Monday, April 12, 2010 1:52 PM
>> To: Trifusion
>> Cc: mercurial at selenic.com
>> Subject: Re: Find all changed versions of a file
>>
>> On Mon, Apr 12, 2010 at 12:27 PM, Trifusion <trifusion at gmail.com>
>> wrote:
>> > 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.
> <snip>
>>
>> "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
>
> The "hg annotate" command is also useful when looking for a specific change
> to a file.
>
> "hg annotate FILENAME" will show, for each line, the revision where that
> line was last changed. You can also search back from specific revisions to
> look further back than the last change.
>
>
> ~Anton
>
>


More information about the Mercurial mailing list