hg log -fr no longer uses intersection logic?

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri Aug 7 01:24:08 UTC 2015



On 08/06/2015 07:32 AM, Bob Eby wrote:
> I notice the following command works fine on Mercurial 3.5:
>
> hg log -r "follow('foo.cpp') and tip:1000"
>
> (As long as foo.cpp is in the root of the repository at least)
>
> This gives the intersection of following foo.cpp with a revset, where
> the revset controls the sort order.
>
> Is there any reason *not* to expect that combining -f and -r commands
> would give the intersection of the result with sort order controlled
> by the revset portion of the command?
>
> It seems that it used to work this way in Mercurial 3.3.* and earlier.
> What exactly does combining -f and -r do now?  It seems the revset is
> simply ignored, shouldn't this just be an error?  (error: can't
> combine -f and -r since it doesn't make sense?)

I'm not sure to follow you here. You seems to be comparing two different 
way of invoking mercurial, but you only include a full example for only 
one. Can you clarify what we compare here.

You also suggest that there is a different in behavior between 3.5 and 
3.3. I'm not clear what is the behavior you are pointing at in each case.

Could you clarify the two points above?

-- 
Pierre-Yves David



More information about the Mercurial mailing list