summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-04-30 20:09:55 -0500
committerJunio C Hamano <gitster@pobox.com>2013-04-30 22:06:46 -0700
commitaa12a431f3bb96fa01cd1efa97eb1273d9a00c0e (patch)
tree87563c5d2c9aafddeba55d507a2e59dd75ee5596
parent181662080098e77a0fd814ffe84be605a058b5d1 (diff)
downloadgit-aa12a431f3bb96fa01cd1efa97eb1273d9a00c0e.tar.gz
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>
-rwxr-xr-xcontrib/remote-helpers/git-remote-bzr2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr
index 91b5cda767..b428244cac 100755
--- a/contrib/remote-helpers/git-remote-bzr
+++ b/contrib/remote-helpers/git-remote-bzr
@@ -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