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/08 21:57:13 UTC
git commit: [#5781] Fixed failing LastCommit tests
Updated Branches:
refs/heads/cj/5781 2d486c0ac -> 09777b265
[#5781] Fixed failing LastCommit tests
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/09777b26
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/09777b26
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/09777b26
Branch: refs/heads/cj/5781
Commit: 09777b265732c179b9499f54db48cdb067b238ce
Parents: 2d486c0
Author: Cory Johns <jo...@geek.net>
Authored: Fri Feb 8 20:56:54 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Fri Feb 8 20:56:54 2013 +0000
----------------------------------------------------------------------
Allura/allura/tests/model/test_repo.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/09777b26/Allura/allura/tests/model/test_repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/model/test_repo.py b/Allura/allura/tests/model/test_repo.py
index 81637a0..bba9042 100644
--- a/Allura/allura/tests/model/test_repo.py
+++ b/Allura/allura/tests/model/test_repo.py
@@ -128,6 +128,7 @@ class TestLastCommit(unittest.TestCase):
repo=self.repo,
)
commit.tree = self._build_tree(commit, '/', tree_paths)
+ commit.get_tree = lambda c: commit.tree
diffinfo = M.repo.DiffInfoDoc(dict(
_id=commit._id,
differences=[{'name': p} for p in diff_paths or tree_paths],