hg log 'filename' not showing merges?

Matt Mackall mpm at selenic.com
Mon May 21 22:47:41 UTC 2007


On Mon, May 21, 2007 at 06:35:00PM -0400, Leo Razoumov wrote:
> On 5/21/07, Matt Mackall <mpm at selenic.com> wrote:
> >[..snip..]
> >But we still haven't solved your problem, which can be phrased as
> >"when did file X get changed -relative- to branch Y"? And
> >unfortunately, we don't currently store enough data in each changeset
> >to make answering this question fast. We store a list of changed files
> >but that's only "changed" in the sense above. So we'll have to hack
> >something up:
> >
> >for rev in `hg log -f --template "{rev}\n"`; do
> >  echo -n "$rev:"
> >  hg manifest --debug | grep myfile
> >done
> 
> The 3-rd line in the shell script  above
>  "hg manifest --debug | grep myfile"
> does not seem right. It does not use  current value of $rev at all.
> Should it be the following instead??
> 
>  hg manifest --debug  $rev  | grep myfile

Yes.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list