# HG changeset patch # User Pierre-Yves David # Date 2014-04-04 00:25:47 # 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 --git a/tests/test-bundle2.t b/tests/test-bundle2.t --- a/tests/test-bundle2.t +++ b/tests/test-bundle2.t @@ -72,11 +72,13 @@ Create an extension to test bundle2 API > 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)) >