"hg log -r 10" prints log from 0 to 10

Wang Weijun weijun.wang at oracle.com
Mon Oct 12 05:03:20 UTC 2015


I find the reason: there is a [default] log=--follow in my ~/.hgrc.

But is that what --follow means? I thought it's used to track name changes.

I am using the current tip at http://selenic.com/hg.

--Max

> On Oct 12, 2015, at 11:11 AM, Matt Mackall <mpm at selenic.com> wrote:
> 
> On Mon, 2015-10-12 at 09:54 +0800, Wang Weijun wrote:
>> I haven't updated my local mercurial for a while but today I found
>> 
>>  hg log -r 10
>> 
>> prints changesets info from 0 to 10. Shouldn't it only print our that of 10? If this is an intended change, what is the proper way to print out info for only #10?
> 
> It should only show the one revision. We've never had reports of it
> doing otherwise and we have a dozen tests of that form that have never
> failed. But just to be sure, I just tested all of 2.0 - 3.5 with no
> problems.
> 
> So it's probably something particular to your config. Which version of
> hg are you running? Have you aliased log? Running a weird extension?
> Cadmium?
> 
> -- 
> Mathematics is the supreme nostalgia of our time.
> 




More information about the Mercurial mailing list