allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [12/50] git commit: [#6534] ticket:416 Small refactoring
Date Fri, 04 Oct 2013 18:06:56 GMT
[#6534] ticket:416 Small refactoring


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/d8eeda6c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/d8eeda6c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/d8eeda6c

Branch: refs/heads/cj/6692
Commit: d8eeda6c72c596c6ea81a7bbca291626587325aa
Parents: 155a1a9
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Tue Sep 10 17:10:22 2013 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Fri Oct 4 14:21:20 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/github/wiki.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/d8eeda6c/ForgeImporters/forgeimporters/github/wiki.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/github/wiki.py b/ForgeImporters/forgeimporters/github/wiki.py
index b9d9688..f16e159 100644
--- a/ForgeImporters/forgeimporters/github/wiki.py
+++ b/ForgeImporters/forgeimporters/github/wiki.py
@@ -81,9 +81,9 @@ class GitHubWikiImporter(ToolImporter):
             "Wiki",
             mount_point=mount_point or 'wiki',
             mount_label=mount_label or 'Wiki')
-        get_wiki_with_history = tool_option == 'history_github_wiki'
+        with_history = tool_option == 'history_github_wiki'
         with h.push_config(c, app=app):
-            self.get_wiki_pages(extractor.get_page_url('wiki_url'), history=get_wiki_with_history)
+            self.get_wiki_pages(extractor.get_page_url('wiki_url'), history=with_history)
         g.post_event('project_updated')
         return app
 
@@ -123,8 +123,6 @@ class GitHubWikiImporter(ToolImporter):
         wiki = git.Repo.clone_from(wiki_url, to_path=wiki_path, bare=True)
         if not history:
             return self.get_blobs_without_history(wiki.heads.master.commit)
-
-        commits = [commit for commit in wiki.iter_commits()]
-        for commit in reversed(commits):
+        for commit in reversed(list(wiki.iter_commits())):
             self.get_blobs_with_history(commit)
         rmtree(wiki_path)


Mime
View raw message