hg log -fr no longer uses intersection logic?

Bob Eby ebyrob at gmail.com
Thu Aug 6 14:32:40 UTC 2015


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?)

Thanks,
Robert Eby


More information about the Mercurial mailing list