Show More
@@ -10,14 +10,13 b' Helper extension to intercept renames.' | |||||
10 | > |
|
10 | > | |
11 | > def extsetup(ui): |
|
11 | > def extsetup(ui): | |
12 | > def close(orig, *args, **kwargs): |
|
12 | > def close(orig, *args, **kwargs): | |
13 | > path = args[0]._atomictempfile__name |
|
13 | > path = util.normpath(args[0]._atomictempfile__name) | |
14 | > if path.endswith(b'/.hg/store/data/file.i'): |
|
14 | > if path.endswith(b'/.hg/store/data/file.i'): | |
15 | > os._exit(80) |
|
15 | > os._exit(80) | |
16 | > return orig(*args, **kwargs) |
|
16 | > return orig(*args, **kwargs) | |
17 | > extensions.wrapfunction(util.atomictempfile, 'close', close) |
|
17 | > extensions.wrapfunction(util.atomictempfile, 'close', close) | |
18 | > EOF |
|
18 | > EOF | |
19 |
|
19 | |||
20 |
|
||||
21 | Test offset computation to correctly factor in the index entries themselve. |
|
20 | Test offset computation to correctly factor in the index entries themselve. | |
22 | Also test that the new data size has the correct size if the transaction is aborted |
|
21 | Also test that the new data size has the correct size if the transaction is aborted | |
23 | after the index has been replaced. |
|
22 | after the index has been replaced. |
General Comments 0
You need to be logged in to leave comments.
Login now