You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/02/06 16:51:48 UTC
git commit: [#4691] Prevent needless walks up the commit tree when
computing LCDs
Updated Branches:
refs/heads/cj/4691 b67150660 -> a7ba5776a
[#4691] Prevent needless walks up the commit tree when computing LCDs
Signed-off-by: Cory Johns <jo...@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/a7ba5776
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/a7ba5776
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/a7ba5776
Branch: refs/heads/cj/4691
Commit: a7ba5776a59df987a94d00c1770f637591f2040d
Parents: b671506
Author: Cory Johns <jo...@geek.net>
Authored: Wed Feb 6 15:51:19 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Wed Feb 6 15:51:19 2013 +0000
----------------------------------------------------------------------
Allura/allura/model/repository.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/a7ba5776/Allura/allura/model/repository.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repository.py b/Allura/allura/model/repository.py
index 7df624e..fbdb14d 100644
--- a/Allura/allura/model/repository.py
+++ b/Allura/allura/model/repository.py
@@ -119,7 +119,7 @@ class RepositoryImplementation(object):
'''
paths = set(paths)
result = {}
- while commit:
+ while paths and commit:
changed = paths & set(commit.changed_paths)
result.update({path: commit._id for path in changed})
paths = paths - changed