incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [13/34] git commit: [#5022] Tie in copy_hooks flag to install_app
Date Tue, 02 Oct 2012 21:30:28 GMT
[#5022] Tie in copy_hooks flag to install_app

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

Branch: refs/heads/db/4968
Commit: fffbaa7227a909dd3cf0be353413760a694bc7d7
Parents: 7b836aa
Author: Cory Johns <johnsca@geek.net>
Authored: Mon Oct 1 16:21:38 2012 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Mon Oct 1 20:25:54 2012 +0000

----------------------------------------------------------------------
 Allura/allura/tasks/repo_tasks.py |    6 ++++--
 ForgeGit/forgegit/git_main.py     |    6 ++++--
 ForgeHg/forgehg/hg_main.py        |    6 ++++--
 ForgeSVN/forgesvn/svn_main.py     |    3 ++-
 4 files changed, 14 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fffbaa72/Allura/allura/tasks/repo_tasks.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tasks/repo_tasks.py b/Allura/allura/tasks/repo_tasks.py
index 7e71c7b..fe3db97 100644
--- a/Allura/allura/tasks/repo_tasks.py
+++ b/Allura/allura/tasks/repo_tasks.py
@@ -22,13 +22,15 @@ def init(**kwargs):
 def clone(
     cloned_from_path,
     cloned_from_name,
-    cloned_from_url):
+    cloned_from_url,
+    copy_hooks=False):
     try:
         from allura import model as M
         c.app.repo.init_as_clone(
             cloned_from_path,
             cloned_from_name,
-            cloned_from_url)
+            cloned_from_url,
+            copy_hooks)
         M.Notification.post_user(
             c.user, c.app.repo, 'created',
             text='Repository %s/%s created' % (

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fffbaa72/ForgeGit/forgegit/git_main.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/git_main.py b/ForgeGit/forgegit/git_main.py
index 417dbaa..d7e9bac 100644
--- a/ForgeGit/forgegit/git_main.py
+++ b/ForgeGit/forgegit/git_main.py
@@ -59,11 +59,13 @@ class ForgeGitApp(RepositoryApp):
             allura.tasks.repo_tasks.clone.post(
                 cloned_from_path=cloned_from.full_fs_path,
                 cloned_from_name=cloned_from.app.config.script_name(),
-                cloned_from_url=cloned_from.full_fs_path)
+                cloned_from_url=cloned_from.full_fs_path,
+                copy_hooks=self.config.options.get('copy_hooks', False))
         elif init_from_url or init_from_path:
             allura.tasks.repo_tasks.clone.post(
                 cloned_from_path=init_from_path,
                 cloned_from_name=None,
-                cloned_from_url=init_from_url)
+                cloned_from_url=init_from_url,
+                copy_hooks=self.config.options.get('copy_hooks', False))
         else:
             allura.tasks.repo_tasks.init.post()

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fffbaa72/ForgeHg/forgehg/hg_main.py
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/hg_main.py b/ForgeHg/forgehg/hg_main.py
index eb23b09..55566f1 100644
--- a/ForgeHg/forgehg/hg_main.py
+++ b/ForgeHg/forgehg/hg_main.py
@@ -59,12 +59,14 @@ class ForgeHgApp(RepositoryApp):
             allura.tasks.repo_tasks.clone.post(
                 cloned_from_path=cloned_from.full_fs_path,
                 cloned_from_name=cloned_from.app.config.script_name(),
-                cloned_from_url=cloned_from.full_fs_path)
+                cloned_from_url=cloned_from.full_fs_path,
+                copy_hooks=self.config.options.get('copy_hooks', False))
         elif init_from_url or init_from_path:
             allura.tasks.repo_tasks.clone.post(
                 cloned_from_path=init_from_path,
                 cloned_from_name=None,
-                cloned_from_url=init_from_url)
+                cloned_from_url=init_from_url,
+                copy_hooks=self.config.options.get('copy_hooks', False))
         else:
             allura.tasks.repo_tasks.init.post()
 

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fffbaa72/ForgeSVN/forgesvn/svn_main.py
----------------------------------------------------------------------
diff --git a/ForgeSVN/forgesvn/svn_main.py b/ForgeSVN/forgesvn/svn_main.py
index 1cc54d3..63af650 100644
--- a/ForgeSVN/forgesvn/svn_main.py
+++ b/ForgeSVN/forgesvn/svn_main.py
@@ -67,7 +67,8 @@ class ForgeSVNApp(RepositoryApp):
             allura.tasks.repo_tasks.clone.post(
                 cloned_from_path=init_from_path,
                 cloned_from_name=None,
-                cloned_from_url=init_from_url)
+                cloned_from_url=init_from_url,
+                copy_hook=self.config.options.get('copy_hooks', False))
         else:
             allura.tasks.repo_tasks.init.post()
 


Mime
View raw message