Mercurial > evolve
changeset 5334:498dc93c3fa0
topic: rename topicrel() to topicsubrel() while at it
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 19 May 2020 12:49:12 +0800 |
parents | 028e4ea75456 |
children | e5406605d8f5 |
files | hgext3rd/topic/revset.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/topic/revset.py Tue May 19 12:25:14 2020 +0800 +++ b/hgext3rd/topic/revset.py Tue May 19 12:49:12 2020 +0800 @@ -163,15 +163,15 @@ revset.subscriptrelations[b'stack'] = stacksubrel revset.subscriptrelations[b's'] = stacksubrel - def topicrel(repo, subset, x, *args): + def topicsubrel(repo, subset, x, *args): subset &= topicset(repo, subset, x) # 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 + revset.subscriptrelations[b'topic'] = topicsubrel + revset.subscriptrelations[b't'] = topicsubrel # x#y revset operator support (no support for older version) # hg <= 5.3 (eca82eb9d777)