Find all changed versions of a file
Anton Markov
anton.markov at gmail.com
Mon Apr 12 14:35:32 CDT 2010
> -----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