Skip to content

Commit aa12a43

Browse files
felipecgitster
authored andcommitted
remote-bzr: fix order of locking in CustomTree
It doesn't seem to make any difference, but revision_tree() requires a lock. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1816620 commit aa12a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/remote-helpers/git-remote-bzr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ class CustomTree():
389389

390390
def copy_tree(revid):
391391
files = files_cache[revid] = {}
392-
tree = repo.repository.revision_tree(revid)
393392
repo.lock_read()
393+
tree = repo.repository.revision_tree(revid)
394394
try:
395395
for path, entry in tree.iter_entries_by_dir():
396396
files[path] = entry.file_id

0 commit comments

Comments
 (0)