Mercurial > evolve
comparison hgext3rd/pullbundle.py @ 5193:a4d081923c81
compat: update hg-X.Y compat comments and test them
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 10 Mar 2020 19:05:08 +0700 |
parents | a8ac174010a5 |
children | 5b1011a5c824 |
comparison
equal
deleted
inserted
replaced
5192:f5b366a31740 | 5193:a4d081923c81 |
---|---|
638 else: | 638 else: |
639 def progress(ui, topic, pos, item=b"", unit=b"", total=None): | 639 def progress(ui, topic, pos, item=b"", unit=b"", total=None): |
640 ui.progress(topic, pos, item, unit, total) | 640 ui.progress(topic, pos, item, unit, total) |
641 | 641 |
642 # nodemap.get and index.[has_node|rev|get_rev] | 642 # nodemap.get and index.[has_node|rev|get_rev] |
643 # hg <= 5.3 (02802fa87b74) | 643 # hg <= 5.2 (02802fa87b74) |
644 def getgetrev(cl): | 644 def getgetrev(cl): |
645 """Returns index.get_rev or nodemap.get (for pre-5.3 Mercurial).""" | 645 """Returns index.get_rev or nodemap.get (for pre-5.3 Mercurial).""" |
646 if util.safehasattr(cl.index, 'get_rev'): | 646 if util.safehasattr(cl.index, 'get_rev'): |
647 return cl.index.get_rev | 647 return cl.index.get_rev |
648 return cl.nodemap.get | 648 return cl.nodemap.get |