diff hgext3rd/topic/revset.py @ 5335:e5406605d8f5

topic: document the other safehasattr() compatibility check
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 23 May 2020 11:43:26 +0800
parents 498dc93c3fa0
children 5a70669beaa3
line wrap: on
line diff
--- a/hgext3rd/topic/revset.py	Tue May 19 12:49:12 2020 +0800
+++ b/hgext3rd/topic/revset.py	Sat May 23 11:43:26 2020 +0800
@@ -107,6 +107,8 @@
         branch = repo[None].branch()
     return revset.baseset(stack.stack(repo, branch=branch, topic=topic)[1:]) & subset
 
+# x#y[z] revset operator support (no support for older version)
+# hg <= 4.8 (e54bfde922f2)
 if util.safehasattr(revset, 'subscriptrelations'):
     def stacksubrel(repo, subset, x, rel, z, order):
         """This is a revset-flavored implementation of stack aliases.