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 2012/10/01 18:22:28 UTC
git commit: [#5022] Tie in copy_hooks flag to install_app
Updated Branches:
refs/heads/cj/5022 2f508763e -> bd92ad692
[#5022] Tie in copy_hooks flag to install_app
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/bd92ad69
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/bd92ad69
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/bd92ad69
Branch: refs/heads/cj/5022
Commit: bd92ad692335135eaecbc1ee534c829adb8bdb8a
Parents: 2f50876
Author: Cory Johns <jo...@geek.net>
Authored: Mon Oct 1 16:21:38 2012 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Mon Oct 1 16:21:38 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/bd92ad69/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/bd92ad69/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/bd92ad69/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/bd92ad69/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()