compat: add hg version to progress compatibility code
authorAnton Shestakov <av6@dwimlabs.net>
Thu, 19 Dec 2019 18:01:15 +0700
changeset 5043 db341dafdccb
parent 5042 51d0f2355215
child 5044 b9179a034005
compat: add hg version to progress compatibility code
hgext3rd/evolve/compat.py
--- a/hgext3rd/evolve/compat.py	Mon Dec 09 19:59:51 2019 +0700
+++ b/hgext3rd/evolve/compat.py	Thu Dec 19 18:01:15 2019 +0700
@@ -75,6 +75,7 @@
     r'PHASEDIVERGENT': b'phase-divergent',
 }
 
+# hg <= 4.6 (bec1212eceaa)
 if util.safehasattr(uimod.ui, 'makeprogress'):
     def progress(ui, topic, pos, item=b"", unit=b"", total=None):
         progress = ui.makeprogress(topic, unit, total)