[PATCH 6 of 7] context: add obsolete related function to changectx

Matt Mackall mpm at selenic.com
Wed May 23 16:12:00 CDT 2012


On Mon, 2012-05-14 at 18:10 +0200, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves.David at ens-lyon.org
> # Date 1337010174 -7200
> # Node ID 24f1d1c09ad14226025c60a02b12a4cbf6908b8d
> # Parent  83c2e502114062b05f25533ac172b40b95e686c1
> context: add obsolete related function to changectx
> 
> ctx.obsolete(): return True if the changeset is obsoleted by any marker.

This one is redundant.

> ctx.obsmarkers(): yield markerctx for marker making this changeset obsolete

If we have a'' -> a' -> a, does this return [a'', a'] or just [a'']? If
the former, is that the interface that the average user of this will
want?

> ctx.replmarkers(): yield markerctx for marker making this changeset a
> remplacement

For both of these, we should lose "markers" and name them obsoleted()
and replaced().

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list