Show More
@@ -58,11 +58,11 Helper extension to intercept renames an | |||||
58 | > def _wait_post_load(orig, self, *args, **kwargs): |
|
58 | > def _wait_post_load(orig, self, *args, **kwargs): | |
59 | > wait = b'data/file' in self.radix |
|
59 | > wait = b'data/file' in self.radix | |
60 | > if wait: |
|
60 | > if wait: | |
61 | > testing.wait_file(b"$TESTTMP/writer-revlog-split") |
|
61 | > testing.wait_file(b"$TESTTMP_FORWARD_SLASH/writer-revlog-split") | |
62 | > r = orig(self, *args, **kwargs) |
|
62 | > r = orig(self, *args, **kwargs) | |
63 | > if wait: |
|
63 | > if wait: | |
64 | > testing.write_file(b"$TESTTMP/reader-index-read") |
|
64 | > testing.write_file(b"$TESTTMP_FORWARD_SLASH/reader-index-read") | |
65 | > testing.wait_file(b"$TESTTMP/writer-revlog-unsplit") |
|
65 | > testing.wait_file(b"$TESTTMP_FORWARD_SLASH/writer-revlog-unsplit") | |
66 | > return r |
|
66 | > return r | |
67 | > |
|
67 | > | |
68 | > def extsetup(ui): |
|
68 | > def extsetup(ui): | |
@@ -441,7 +441,7 split and end reading (the data) after t | |||||
441 | $ cd troffset-computation-race |
|
441 | $ cd troffset-computation-race | |
442 | $ cat > .hg/hgrc <<EOF |
|
442 | $ cat > .hg/hgrc <<EOF | |
443 | > [hooks] |
|
443 | > [hooks] | |
444 |
> pretxnchangegroup= |
|
444 | > pretxnchangegroup=sh "$RUNTESTDIR/testlib/wait-on-file" 5 $TESTTMP/reader-index-read $TESTTMP/writer-revlog-split | |
445 | > pretxnclose = false |
|
445 | > pretxnclose = false | |
446 | > EOF |
|
446 | > EOF | |
447 |
|
447 | |||
@@ -485,8 +485,8 We checks that hooks properly see the in | |||||
485 | $ cd troffset-computation-hooks |
|
485 | $ cd troffset-computation-hooks | |
486 | $ cat > .hg/hgrc <<EOF |
|
486 | $ cat > .hg/hgrc <<EOF | |
487 | > [hooks] |
|
487 | > [hooks] | |
488 |
> pretxnclose.01-echo = hg cat -r |
|
488 | > pretxnclose.01-echo = hg cat -r "max(all())" file | "$PYTHON" "$RUNTESTDIR/f" --size | |
489 |
> pretxnclose.02-echo = |
|
489 | > pretxnclose.02-echo = sh "$RUNTESTDIR/testlib/wait-on-file" 5 $TESTTMP/hook-done $TESTTMP/hook-tr-ready | |
490 | > pretxnclose.03-abort = false |
|
490 | > pretxnclose.03-abort = false | |
491 | > EOF |
|
491 | > EOF | |
492 |
|
492 |
General Comments 0
You need to be logged in to leave comments.
Login now