Improve performance of issue 6528 workarounds
As reported on IRC, the issue6528 workarounds can have a serious performance impact for operations like hg unshelve
. This patch series adds a number of trivial performance improvements by either handling known cases earlier or by assuming that the repository has been fixed if necessary.