Commit 5827f153 authored by Anton Shestakov's avatar Anton Shestakov
Browse files

compat: add hg version to progress compatibility code

parent 51d0f2355215
......@@ -75,6 +75,7 @@ TROUBLES = {
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment