Integrity fail after rolling back tag remove
Created originally on Bitbucket by Anonymous
To reproduce:
- tag a commit;
- do some more commits
- remove tag
- rollback/undo remove tag; .hgtags will be left as modified
- revert changes on .hgtags
- try to repeat from 3; it will fail integrity check