# HG changeset patch # User Boris Feld # Date 1498823244 -7200 # Node ID df90f4d6c6091d67c86a8a27162d3d05cf3bcad8 # Parent 02299a28ba349a370b87122f4a5e550c245a0821 obsolete: small doc update for 'successorssets' Clarify successorssets documentation before we start updating the main function. This patch serie will introduce the successorssets template, the opposite of predecessor templates. Successors will use successorssets function and requires some improvement so before doing that, we clean up successorssets a bit. diff -r 02299a28ba34 -r df90f4d6c609 mercurial/obsutil.py --- a/mercurial/obsutil.py Tue Jul 04 18:52:28 2017 -0700 +++ b/mercurial/obsutil.py Fri Jun 30 13:47:24 2017 +0200 @@ -338,15 +338,16 @@ successors set. To distinguish this from a pruned changeset, the successor set will contain itself only, i.e. [(A,)]. - Finally, successors unknown locally are considered to be pruned (obsoleted - without any successors). + Finally, final successors unknown locally are considered to be pruned + (pruned: obsoleted without any successors). (Final: successors not affected + by markers). - The optional `cache` parameter is a dictionary that may contain precomputed - successors sets. It is meant to reuse the computation of a previous call to - `successorssets` when multiple calls are made at the same time. The cache - dictionary is updated in place. The caller is responsible for its life - span. Code that makes multiple calls to `successorssets` *must* use this - cache mechanism or suffer terrible performance. + The optional `cache` parameter is a dictionary that may contains + precomputed successors sets. It is meant to reuse the computation of a + previous call to `successorssets` when multiple calls are made at the same + time. The cache dictionary is updated in place. The caller is responsible + for its life span. Code that makes multiple calls to `successorssets` + *should* use this cache mechanism or risk a performance hit. """ succmarkers = repo.obsstore.successors