Mercurial > hgsubversion
view tests/fixtures/dir_removal.svndump @ 1539:0ebcc5bbf692
tests: when making a `memctx`, make sure to use a single repo instance
The way self.repo is dynamic produces bad lock behavior because the
`context.memctx` ends up with a different instance than self in
`localrepo.commitctx`, which means the callbacks in the `memctx` get
an unlocked repo instance. This causes lock warning failures. When
it's not a code freeze for core, we should probably:
* Make lock failures hard, not just warnings
* Stop holding a repo reference in memctx, or otherwise check it's the same
instance as `self` during `localrepo.commitctx`
That's my best guess based on the (very hard to debug) test failures here.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 28 Oct 2017 21:34:52 -0400 |
parents | 8c7dae2e0f54 |
children |
line wrap: on
line source
SVN-fs-dump-format-version: 2 UUID: 5554378f-55cc-437f-9045-6148f657307d Revision-number: 0 Prop-content-length: 56 Content-length: 56 K 8 svn:date V 27 2017-05-23T11:48:49.399395Z PROPS-END Revision-number: 1 Prop-content-length: 103 Content-length: 103 K 10 svn:author V 8 testuser K 8 svn:date V 27 2017-05-23T11:49:53.974692Z K 7 svn:log V 1 1 PROPS-END Node-path: dir1 Node-kind: dir Node-action: add Prop-content-length: 10 Content-length: 10 PROPS-END Node-path: dir1/1.txt Node-kind: file Node-action: add Text-content-md5: d41d8cd98f00b204e9800998ecf8427e Text-content-sha1: da39a3ee5e6b4b0d3255bfef95601890afd80709 Prop-content-length: 10 Text-content-length: 0 Content-length: 10 PROPS-END Node-path: dir2 Node-kind: dir Node-action: add Prop-content-length: 10 Content-length: 10 PROPS-END Node-path: dir2/2.txt Node-kind: file Node-action: add Text-content-md5: d41d8cd98f00b204e9800998ecf8427e Text-content-sha1: da39a3ee5e6b4b0d3255bfef95601890afd80709 Prop-content-length: 10 Text-content-length: 0 Content-length: 10 PROPS-END Revision-number: 2 Prop-content-length: 103 Content-length: 103 K 10 svn:author V 8 testuser K 8 svn:date V 27 2017-05-23T11:50:14.852941Z K 7 svn:log V 1 2 PROPS-END Node-path: dir1/dir2 Node-kind: dir Node-action: add Node-copyfrom-rev: 1 Node-copyfrom-path: dir2 Node-path: dir2 Node-action: delete