allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [25/42] git commit: [#4691] [fixup] Fixed mistake with for-else construct
Date Tue, 05 Feb 2013 20:23:35 GMT
[#4691] [fixup] Fixed mistake with for-else construct

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/31c81dce
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/31c81dce
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/31c81dce

Branch: refs/heads/master
Commit: 31c81dcec6228a57899edb42efe99c84e7270fd3
Parents: 912436e
Author: Cory Johns <johnsca@geek.net>
Authored: Wed Dec 12 17:19:56 2012 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Feb 5 20:22:51 2013 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/31c81dce/Allura/allura/model/repo_refresh.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo_refresh.py b/Allura/allura/model/repo_refresh.py
index 88c8709..dfabc5b 100644
--- a/Allura/allura/model/repo_refresh.py
+++ b/Allura/allura/model/repo_refresh.py
@@ -346,7 +346,7 @@ def compute_diffs(repo_id, tree_cache, rhs_ci):
         for name, lhs_id, rhs_id in _diff_trees(lhs_tree, rhs_tree, tree_index):
             differences.append(
                 dict(name=name, lhs_id=lhs_id, rhs_id=rhs_id))
-    else:
+    if not rhs_ci.parent_ids:
         # no parents, so everything in rhs is new
         tree_index = _update_cache([], rhs_treesdoc.tree_ids)
         rhs_tree = tree_index[rhs_ci.tree_id]


Mime
View raw message