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 2012/12/11 22:14:28 UTC
[2/4] git commit: [#4691] Removed extraneous code
[#4691] Removed extraneous code
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/7b5bc94b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/7b5bc94b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/7b5bc94b
Branch: refs/heads/cj/4691
Commit: 7b5bc94b77c501f629ff899156dfe4b9909a3fb5
Parents: d1f6388
Author: Cory Johns <jo...@geek.net>
Authored: Tue Dec 11 21:13:23 2012 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Tue Dec 11 21:13:23 2012 +0000
----------------------------------------------------------------------
Allura/allura/model/repo.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/7b5bc94b/Allura/allura/model/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
index b58e16d..2ed1e87 100644
--- a/Allura/allura/model/repo.py
+++ b/Allura/allura/model/repo.py
@@ -220,8 +220,7 @@ class Commit(RepoObject):
'''
Returns a generator that walks up the commit tree along
the first-parent ancestory, starting with this commit.'''
- yield self
- ancestor = self.get_parent()
+ ancestor = self
while ancestor:
yield ancestor
ancestor = ancestor.get_parent()