incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [1/2] git commit: [#4691] Temporarily skip computing diffs for removed trees pending [#5733] to reduce chance of hitting slow _diffs_copied
Date Mon, 04 Feb 2013 15:24:34 GMT
[#4691] Temporarily skip computing diffs for removed trees pending [#5733] to reduce chance
of hitting slow _diffs_copied

Signed-off-by: Cory Johns <johnsca@geek.net>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/859d2e6b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/859d2e6b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/859d2e6b

Branch: refs/heads/cj/4691
Commit: 859d2e6bdeec7efaf1e460ca0f85691b7f6057ec
Parents: a74ce63
Author: Cory Johns <johnsca@geek.net>
Authored: Mon Feb 4 15:23:34 2013 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Mon Feb 4 15:23:34 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/repo_refresh.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/859d2e6b/Allura/allura/model/repo_refresh.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo_refresh.py b/Allura/allura/model/repo_refresh.py
index bdd5a1f..313e58c 100644
--- a/Allura/allura/model/repo_refresh.py
+++ b/Allura/allura/model/repo_refresh.py
@@ -430,6 +430,7 @@ def _diff_trees(lhs, rhs, index, *path):
             continue
         elif rhs_id is None:  # removed
             yield (_fq(o.name), o.id, None)
+            continue  # FIXME This is a temporary work-around for #5733 and breaks moved/renamed
directories
             rhs_tree = Object(_id=None, tree_ids=[], blob_ids=[], other_ids=[])
         else:  # changed
             rhs_tree = index[rhs_id]


Mime
View raw message