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 <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
1816620800
commit
aa12a431f3
@ -389,8 +389,8 @@ class CustomTree():
|
||||
|
||||
def copy_tree(revid):
|
||||
files = files_cache[revid] = {}
|
||||
tree = repo.repository.revision_tree(revid)
|
||||
repo.lock_read()
|
||||
tree = repo.repository.revision_tree(revid)
|
||||
try:
|
||||
for path, entry in tree.iter_entries_by_dir():
|
||||
files[path] = entry.file_id
|
||||
|
Loading…
Reference in New Issue
Block a user