topic: use generationssubrel less directly, because it was recently renamed stable
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 20 Apr 2020 00:05:05 +0800
branchstable
changeset 5298 a828c7a7ace1
parent 5297 2de59d916266
child 5299 426f2800b793
child 5353 f32d4c7f8fb7
topic: use generationssubrel less directly, because it was recently renamed
hgext3rd/topic/revset.py
--- a/hgext3rd/topic/revset.py	Tue Apr 07 15:39:23 2020 +0200
+++ b/hgext3rd/topic/revset.py	Mon Apr 20 00:05:05 2020 +0800
@@ -164,7 +164,10 @@
 
     def topicrel(repo, subset, x, *args):
         subset &= topicset(repo, subset, x)
-        return revset.generationsrel(repo, subset, x, *args)
+        # not using revset.generationssubrel directly because it was renamed
+        # hg <= 5.3 (8859de3e83dc)
+        generationssubrel = revset.subscriptrelations[b'generations']
+        return generationssubrel(repo, subset, x, *args)
 
     revset.subscriptrelations[b'topic'] = topicrel
     revset.subscriptrelations[b't'] = topicrel