##// END OF EJS Templates
bundle2: lock the repo during unbundle test...
Pierre-Yves David -
r20946:e9103365 default
parent child Browse files
Show More
@@ -72,11 +72,13 b' Create an extension to test bundle2 API'
72 72 > def cmdunbundle2(ui, repo):
73 73 > """process a bundle2 stream from stdin on the current repo"""
74 74 > try:
75 > lock = repo.lock()
75 76 > try:
76 77 > bundle2.processbundle(repo, sys.stdin)
77 78 > except KeyError, exc:
78 79 > raise util.Abort('missing support for %s' % exc)
79 80 > finally:
81 > lock.release()
80 82 > remains = sys.stdin.read()
81 83 > ui.write('%i unread bytes\n' % len(remains))
82 84 >
General Comments 0
You need to be logged in to leave comments. Login now