diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-04-30 20:09:55 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-30 22:06:46 -0700 |
commit | aa12a431f3bb96fa01cd1efa97eb1273d9a00c0e (patch) | |
tree | 87563c5d2c9aafddeba55d507a2e59dd75ee5596 /contrib | |
parent | 181662080098e77a0fd814ffe84be605a058b5d1 (diff) | |
download | git-aa12a431f3bb96fa01cd1efa97eb1273d9a00c0e.tar.gz git-aa12a431f3bb96fa01cd1efa97eb1273d9a00c0e.tar.xz |
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-x | contrib/remote-helpers/git-remote-bzr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr index 91b5cda76..b428244ca 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 |