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/01/23 00:23:18 UTC

[32/50] 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/71f2e0cc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/71f2e0cc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/71f2e0cc

Branch: refs/heads/cj/4691
Commit: 71f2e0ccde5ef400ddebc21cc17700efe641b4d9
Parents: 19f82ff
Author: Cory Johns <jo...@geek.net>
Authored: Tue Dec 11 21:13:23 2012 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Tue Jan 22 23:22:45 2013 +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/71f2e0cc/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()