Commit d6bbf17d authored by Anton Shestakov's avatar Anton Shestakov
Browse files

topic: document the other safehasattr() compatibility check

parent 498dc93c3fa0
Pipeline #6356 passed with stage
in 5 minutes and 43 seconds
......@@ -107,6 +107,8 @@ def stackset(repo, subset, x):
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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment