Changeset b69ac99d4533…
Parent 1373526a3040…
by
Changes to one file · Browse files at b69ac99d4533 Showing diff from parent 1373526a3040 Diff from another changeset...
@@ -22,7 +22,15 @@ _encoding = encoding.encoding
_encodingmode = encoding.encodingmode
_fallbackencoding = encoding.fallbackencoding
-hgversion = util.version()
+
+try:
+ # post 1.1.2
+ from mercurial import util
+ hgversion = util.version()
+except AttributeError:
+ # <= 1.1.2
+ from mercurial import version
+ hgversion = version.get_version()
def toutf(s):
"""
|
Loading...