# HG changeset patch # User Anton Shestakov # Date 2020-04-10 14:22:09 # Node ID 8859de3e83dc735474c1fa4e44bb7d5e48be8e1e # Parent 61134a232d00b93db03d8ca31924c4bd425c6bbf revset: rename generationsrel() to generationssubrel() This highlights that this is an implementation of 'x#y[z]' relation subscript operator as opposed to 'x#y' relation operator. Differential Revision: https://phab.mercurial-scm.org/D8393 diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -281,7 +281,7 @@ def _splitrange(a, b): return ancdepths, descdepths -def generationsrel(repo, subset, x, rel, z, order): +def generationssubrel(repo, subset, x, rel, z, order): # TODO: rewrite tests, and drop startdepth argument from ancestors() and # descendants() predicates a, b = getintrange( @@ -2650,8 +2650,8 @@ methods = { } subscriptrelations = { - b"g": generationsrel, - b"generations": generationsrel, + b"g": generationssubrel, + b"generations": generationssubrel, }