Ordering support issues could be tricky to discover since they may be hidden
behind other side effects.
This patch implements debugrevspec --check-ordering so it can be used to
test ordering support of revset implementations. Handy for extension
developers.
A test was added showing that command is able to detect a lot of ordering
issues in core hg.