summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-01 01:09:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-01 05:06:46 (GMT)
commitaa12a431f3bb96fa01cd1efa97eb1273d9a00c0e (patch)
tree87563c5d2c9aafddeba55d507a2e59dd75ee5596 /contrib
parent181662080098e77a0fd814ffe84be605a058b5d1 (diff)
downloadgit-aa12a431f3bb96fa01cd1efa97eb1273d9a00c0e.zip
git-aa12a431f3bb96fa01cd1efa97eb1273d9a00c0e.tar.gz
git-aa12a431f3bb96fa01cd1efa97eb1273d9a00c0e.tar.bz2
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>
Diffstat (limited to 'contrib')
-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 91b5cda..b428244 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