comparison tests/test-inhibit.t @ 1533:74cf5a69f201

_inhibitmarkers: turn the result from generator into a list A generator object is always True, we have to turn it into a list in order to be able to use it in the tests. Before this patch we were rewriting the 'obsinhibit' file all the time, this had a performance impact especially on repository where transaction are expensive (hooks, cache invalidation, etc). Writing this file less often have a minor effect on test where a stripped changeset does not get removed from the obsinhibit file is still inhibited when unbundled back. I think this is fine and I'm moving forward.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 17 Nov 2015 22:43:17 -0800
parents 8dfb88ca0c08
children 50e683d9835e
comparison
equal deleted inserted replaced
1532:48547b4c77de 1533:74cf5a69f201
649 $ hg unbundle .hg/strip-backup/210589181b14-e09c7b88-backup.hg # restore state 649 $ hg unbundle .hg/strip-backup/210589181b14-e09c7b88-backup.hg # restore state
650 adding changesets 650 adding changesets
651 adding manifests 651 adding manifests
652 adding file changes 652 adding file changes
653 added 2 changesets with 1 changes to 2 files (+1 heads) 653 added 2 changesets with 1 changes to 2 files (+1 heads)
654 (run 'hg heads' to see heads, 'hg merge' to merge) 654 (run 'hg heads .' to see heads, 'hg merge' to merge)
655 655
656 Only allow direct access and check that evolve works like before 656 Only allow direct access and check that evolve works like before
657 (also disable evolve commands to avoid hint about using evolve) 657 (also disable evolve commands to avoid hint about using evolve)
658 $ cat >> $HGRCPATH <<EOF 658 $ cat >> $HGRCPATH <<EOF
659 > [extensions] 659 > [extensions]