branch | stable |
changeset 5148 | 366f6e4108d6 |
parent 5140 | c705c4069fb1 |
child 5150 | e0c091b199bc |
--- a/hgext3rd/topic/server.py Wed Mar 04 16:05:28 2020 +0100 +++ b/hgext3rd/topic/server.py Wed Mar 04 16:36:32 2020 +0100 @@ -10,9 +10,15 @@ wireprotov1server, ) -from mercurial.utils import ( - repoviewutil, -) + +try: + from mercurial.utils import ( + repoviewutil, + ) + repoviewutil.subsettable +except (AttributeError, ImportError): + # hg <= 4.8 + from mercurial import branchmap as repoviewutil from . import ( common,