Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

hglib: replace logic for loading old version numbers

We'll need to keep around this logic for loading old Mercurial version
numbers in order to tell the user to upgrade their Mercurial install.

Changeset b69ac99d4533

Parent 1373526a3040

by Steve Borho

Changes to one file · Browse files at b69ac99d4533 Showing diff from parent 1373526a3040 Diff from another changeset...

Change 1 of 1 Show Entire File thgutil/​hglib.py Stacked
 
22
23
24
25
 
 
 
 
 
 
 
 
 
26
27
28
 
22
23
24
 
25
26
27
28
29
30
31
32
33
34
35
36
@@ -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):   """