comparison hgsubversion/compathacks.py @ 1572:51e105c7f0c6

compathacks: deal with removed aliases in mercurial.util
author Augie Fackler <raf@durin42.com>
date Sun, 27 May 2018 00:29:38 -0400
parents 8410a978c650
children 7bb6562feb85
comparison
equal deleted inserted replaced
1571:f8ca09a97492 1572:51e105c7f0c6
150 150
151 def _extrasetup(self, name, func): 151 def _extrasetup(self, name, func):
152 """Execute exra setup for registered function, if needed 152 """Execute exra setup for registered function, if needed
153 """ 153 """
154 pass 154 pass
155
156 try:
157 binary = util.binary
158 except AttributeError:
159 from mercurial.utils import stringutil
160 binary = stringutil.binary
161
162 try:
163 datestr = util.datestr
164 except AttributeError:
165 from mercurial.utils import dateutil
166 datestr = dateutil.datestr