filectx.ancestor requires a changectx starting in Mercurial 2.3?

Richard Stephens rstephens at atlassian.com
Tue Nov 20 22:11:03 CST 2012


Hi,

Prior to Mercurial 2.3, filectx.ancestor (in mercurial/context.py)
could be called with another file context, and the implementation
would lookup the ancestor changeset of the two file revisions (self
and another passed in filectx).

This changeset ( http://www.selenic.com/repo/hg/rev/4b73f4ba27ca )
changed that behaviour, requiring that the ancestor changeset context
be passed in.

It's simple enough to update our extension to perform the changectx
common ancestor lookup that was removed from this method, but does
anyone understand the context as to why this parameter is now
required?

Many thanks,
Richard Stephens


More information about the Mercurial-devel mailing list