# HG changeset patch # User Anton Shestakov # Date 1589863752 -28800 # Node ID 498dc93c3fa0742db7789afe7cd2a1b7e88e518c # Parent 028e4ea75456537a37144cd970b760aa7a0b7830 topic: rename topicrel() to topicsubrel() while at it diff -r 028e4ea75456 -r 498dc93c3fa0 hgext3rd/topic/revset.py --- 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)