# HG changeset patch # User Pierre-Yves David # Date 1396571147 25200 # Node ID e910336539f744e719c2d9524316a53653f1525d # Parent 18adc15635a1a567a0a3c73c4f6d7897c117cee8 bundle2: lock the repo during unbundle test We forgot the lock the repo. It's not too bad during tests, but the lock also still carry some transaction logic. (yes we need to get rid of this) diff -r 18adc15635a1 -r e910336539f7 tests/test-bundle2.t --- a/tests/test-bundle2.t Sun Mar 02 18:52:16 2014 +0100 +++ b/tests/test-bundle2.t Thu Apr 03 17:25:47 2014 -0700 @@ -72,11 +72,13 @@ > def cmdunbundle2(ui, repo): > """process a bundle2 stream from stdin on the current repo""" > try: + > lock = repo.lock() > try: > bundle2.processbundle(repo, sys.stdin) > except KeyError, exc: > raise util.Abort('missing support for %s' % exc) > finally: + > lock.release() > remains = sys.stdin.read() > ui.write('%i unread bytes\n' % len(remains)) >