Mercurial > evolve
changeset 5252:a828c7a7ace1 stable
topic: use generationssubrel less directly, because it was recently renamed
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 20 Apr 2020 00:05:05 +0800 |
parents | 2de59d916266 |
children | 426f2800b793 83ceafbaa7d6 |
files | hgext3rd/topic/revset.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/topic/revset.py Tue Apr 07 15:39:23 2020 +0200 +++ b/hgext3rd/topic/revset.py Mon Apr 20 00:05:05 2020 +0800 @@ -164,7 +164,10 @@ def topicrel(repo, subset, x, *args): subset &= topicset(repo, subset, x) - return revset.generationsrel(repo, subset, x, *args) + # 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