incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [1/3] git commit: [#4691] Prevent needless walks up the commit tree when computing LCDs
Date Wed, 06 Feb 2013 19:35:19 GMT
[#4691] Prevent needless walks up the commit tree when computing LCDs

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/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/master
Commit: a7ba5776a59df987a94d00c1770f637591f2040d
Parents: b671506
Author: Cory Johns <johnsca@geek.net>
Authored: Wed Feb 6 15:51:19 2013 +0000
Committer: Cory Johns <johnsca@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


Mime
View raw message