Mercurial > hg-stable
comparison tests/test-dirstate-race.t @ 40296:e787d97e90ad
py3: fix test-dirstate-race.t
Differential Revision: https://phab.mercurial-scm.org/D5106
author | Mark Thomas <mbthomas@fb.com> |
---|---|
date | Sun, 14 Oct 2018 14:02:32 +0000 |
parents | 4441705b7111 |
children | 28a4fb793ba1 |
comparison
equal
deleted
inserted
replaced
40295:fa88170c10bb | 40296:e787d97e90ad |
---|---|
55 > ) | 55 > ) |
56 > def extsetup(): | 56 > def extsetup(): |
57 > extensions.wrapfunction(context.workingctx, '_checklookup', overridechecklookup) | 57 > extensions.wrapfunction(context.workingctx, '_checklookup', overridechecklookup) |
58 > def overridechecklookup(orig, self, files): | 58 > def overridechecklookup(orig, self, files): |
59 > # make an update that changes the dirstate from underneath | 59 > # make an update that changes the dirstate from underneath |
60 > self._repo.ui.system(r"sh '$TESTTMP/dirstaterace.sh'", | 60 > self._repo.ui.system(br"sh '$TESTTMP/dirstaterace.sh'", |
61 > cwd=self._repo.root) | 61 > cwd=self._repo.root) |
62 > return orig(self, files) | 62 > return orig(self, files) |
63 > EOF | 63 > EOF |
64 | 64 |
65 $ hg debugrebuilddirstate | 65 $ hg debugrebuilddirstate |