Patchwork D8393: revset: rename generationsrel() to generationssubrel()

login
register
mail settings
Submitter phabricator
Date April 15, 2020, 3:18 p.m.
Message ID <3668b14fc8c13dfd1f3aad7292ce27d6@localhost.localdomain>
Download mbox | patch
Permalink /patch/46128/
State Not Applicable
Headers show

Comments

phabricator - April 15, 2020, 3:18 p.m.
Closed by commit rHG8859de3e83dc: revset: rename generationsrel() to generationssubrel() (authored by av6).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8393?vs=21027&id=21100

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8393/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8393

AFFECTED FILES
  mercurial/revset.py

CHANGE DETAILS




To: av6, yuja, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -281,7 +281,7 @@ 
     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 @@ 
 }
 
 subscriptrelations = {
-    b"g": generationsrel,
-    b"generations": generationsrel,
+    b"g": generationssubrel,
+    b"generations": generationssubrel,
 }