Fix backward incompatible change for hg < 5.1
commitd29d30363be0ce0c4497a3b0b753720f1154d7e0
authorchrisjbillington <chrisjbillington@gmail.com>
Wed, 6 May 2020 15:59:35 +0000 (6 11:59 -0400)
committerchrisjbillington <chrisjbillington@gmail.com>
Wed, 6 May 2020 15:59:49 +0000 (6 11:59 -0400)
treef628e66d08d25c573b89824c8f66436e68d3ba8a
parentf102d2a69f67518c62eb26aff101ba6aed2f7a6a
Fix backward incompatible change for hg < 5.1

The port to Python 3 in b961f146 changed `repo.branchmap().iteritems()`
to use `.items()` instead. However, the object returned by mercurial
isn't a dictionary and its `.items()` method was only introduced (as an
alias for `iteritems`) in hg 5.1. `iteritems()` still exists, so let's
keep using it for now to retain compatibility with hg < 5.1.
hg-fast-export.py