changeset 5043:db341dafdccb

compat: add hg version to progress compatibility code
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 19 Dec 2019 18:01:15 +0700
parents 51d0f2355215
children b9179a034005
files hgext3rd/evolve/compat.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)