Show More
@@ -392,14 +392,8 b' def update(repo, parents, node):' | |||
|
392 | 392 | bmchanges.append((bm, None)) |
|
393 | 393 | |
|
394 | 394 | if bmchanges: |
|
395 | lock = tr = None | |
|
396 | try: | |
|
397 | lock = repo.lock() | |
|
398 | tr = repo.transaction('bookmark') | |
|
395 | with repo.lock(), repo.transaction('bookmark') as tr: | |
|
399 | 396 | marks.applychanges(repo, tr, bmchanges) |
|
400 | tr.close() | |
|
401 | finally: | |
|
402 | lockmod.release(tr, lock) | |
|
403 | 397 | return bool(bmchanges) |
|
404 | 398 | |
|
405 | 399 | def listbinbookmarks(repo): |
General Comments 0
You need to be logged in to leave comments.
Login now