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/06 16:42:52 UTC

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

Branch: refs/heads/cj/4691
Commit: 8555546f45c850796db02756d319d27f481c07da
Parents: df33a3d
Author: Cory Johns <jo...@geek.net>
Authored: Tue Dec 11 21:13:23 2012 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Tue Feb 5 20:22:51 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/8555546f/Allura/allura/model/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
index 67f3f02..67c016d 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()