incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [2/4] git commit: [#4691] Removed extraneous code
Date Tue, 11 Dec 2012 21:14:28 GMT
[#4691] Removed extraneous code

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/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 <johnsca@geek.net>
Authored: Tue Dec 11 21:13:23 2012 +0000
Committer: Cory Johns <johnsca@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()


Mime
View raw message