hook check_publish: porting to future hg 5.4
The structure of the `phases` transaction attribute has changed. It's now a list of (key, value) pairs instead of a dict, and keys are lazy ranges (`xrange` in Python2) of revision numbers. The new unit test doesn't prove it really works for a given Mercurial version, only a separate run will do that, but it'll help developers work on both versions at once if they need to change the logic.
Please register or sign in to comment