[PATCH 2 of 2 STABLE] log: copy the way of ancestor traversal to --follow matcher (issue5376)

Pierre-Yves David pierre-yves.david at ens-lyon.org
Tue Sep 27 10:00:12 EDT 2016



On 09/24/2016 04:00 PM, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1474714703 -32400
> #      Sat Sep 24 19:58:23 2016 +0900
> # Branch stable
> # Node ID 4237fd4f828807a9f8d711625da00b24a2ca9461
> # Parent  bf616dd17b4244d4d5fc92b0ada65404596fe4b2
> # EXP-Topic followmatcher
> log: copy the way of ancestor traversal to --follow matcher (issue5376)
>
> We can't use fctx.linkrev() because follow() revset tries hard to simulate
> the traversal of changelog DAG, not filelog DAG. This patch fixes
> _makefollowlogfilematcher() to walk file ancestors in the same way as
> revset._follow().
>
> I'll factor out a common function in future patches.

Pushed, thanks. (also Thanks for Jun for the pre-review)

Cheers,

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list