# HG changeset patch # User Anton Shestakov # Date 1589862209 -28800 # Node ID 801bbfc4e2e8f40d68bada4f3f65f00c809feff6 # Parent db9a64d12014c46b52edf9f610e241df1d813b1c topic: rename stackrel() to stacksubrel() We have both subscript relations and just relations now. diff -r db9a64d12014 -r 801bbfc4e2e8 hgext3rd/topic/revset.py --- a/hgext3rd/topic/revset.py Sat May 16 16:07:34 2020 +0800 +++ b/hgext3rd/topic/revset.py Tue May 19 12:23:29 2020 +0800 @@ -108,7 +108,7 @@ return revset.baseset(stack.stack(repo, branch=branch, topic=topic)[1:]) & subset if util.safehasattr(revset, 'subscriptrelations'): - def stackrel(repo, subset, x, rel, z, order): + def stacksubrel(repo, subset, x, rel, z, order): """This is a revset-flavored implementation of stack aliases. The syntax is: rev#stack[n] or rev#s[n]. Plenty of logic is borrowed @@ -160,8 +160,8 @@ return subset & revset.baseset(revs) - revset.subscriptrelations[b'stack'] = stackrel - revset.subscriptrelations[b's'] = stackrel + revset.subscriptrelations[b'stack'] = stacksubrel + revset.subscriptrelations[b's'] = stacksubrel def topicrel(repo, subset, x, *args): subset &= topicset(repo, subset, x)