Skip to content

Compatibility with MErcurial 5.3 and Python 3

Bitbucket Importer requested to merge bitbucket/merged-pr-6 into branch/default

Created originally on Bitbucket by Anonymous

Was already merged in Bitbucket before import, marked as merged by the import user

  • compat: rework output matching to be more robust

    change on (?) line tend to go unnoticed, so we add some explicit version conditional.

  • compat: conditionality some output for Mercurial 5.2+

    This output is issued later in 5.2, and hgban aborts before that.

  • compat: use revlog.index.get_rev in Mercurial 5.3 +

    The nodemap attribute is going away.

  • compat: fix exception syntax to be compatible with Python 3

  • compat: bytify the regexp

    We will need them tot be bytes and since they are markerd 'r' they won't be byteify by the script.

  • compat: mark kwargs keys as raw

    This will avoid the byteitifier to affect them.

  • compat: convert exception message to text

    This will be relevant for python3

  • compat: make sure we open file in binary mode

    Python 3 would open them as unicode by default.

  • compat: convert all string to bytes

    This will make Python 3 happy.

Merge request reports

Loading