comparison hgext3rd/topic/server.py @ 5148:366f6e4108d6 stable

compat: fix subsettable import for mercurial <= 4.8
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 04 Mar 2020 16:36:32 +0100
parents c705c4069fb1
children e0c091b199bc
comparison
equal deleted inserted replaced
5147:83b607a9296d 5148:366f6e4108d6
8 wireprototypes, 8 wireprototypes,
9 wireprotov1peer, 9 wireprotov1peer,
10 wireprotov1server, 10 wireprotov1server,
11 ) 11 )
12 12
13 from mercurial.utils import ( 13
14 repoviewutil, 14 try:
15 ) 15 from mercurial.utils import (
16 repoviewutil,
17 )
18 repoviewutil.subsettable
19 except (AttributeError, ImportError):
20 # hg <= 4.8
21 from mercurial import branchmap as repoviewutil
16 22
17 from . import ( 23 from . import (
18 common, 24 common,
19 constants, 25 constants,
20 ) 26 )