Index: app/controllers/queries_controller.rb =================================================================== --- app/controllers/queries_controller.rb (revision 1104) +++ app/controllers/queries_controller.rb (working copy) @@ -31,6 +31,7 @@ @query.project = @project @query.user = User.current @query.is_public = false unless current_role.allowed_to?(:manage_public_queries) + @query.automatic_repository_creation = false unless current_role.allowed_to?(:manage_public_queries) @query.column_names = nil if params[:default_columns] params[:fields].each do |field| @@ -53,6 +54,7 @@ end if params[:fields] @query.attributes = params[:query] @query.is_public = false unless current_role.allowed_to?(:manage_public_queries) + @query.automatic_repository_creation = false unless current_role.allowed_to?(:manage_public_queries) @query.column_names = nil if params[:default_columns] if @query.save Index: app/views/admin/projects.rhtml =================================================================== --- app/views/admin/projects.rhtml (revision 1104) +++ app/views/admin/projects.rhtml (working copy) @@ -18,6 +18,7 @@ <%= sort_header_tag('name', :caption => l(:label_project)) %> <%=l(:field_description)%> <%=l(:field_is_public)%> + <%=l(:field_automatic_repository_creation)%> <%=l(:label_subproject_plural)%> <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %> @@ -29,6 +30,7 @@ <%= project.active? ? link_to(h(project.name), :controller => 'projects', :action => 'settings', :id => project) : h(project.name) %> <%= textilizable project.short_description, :project => project %> <%= image_tag 'true.png' if project.is_public? %> + <%= image_tag 'true.png' if project.automatic_repository_creation? %> <%= project.children.size %> <%= format_date(project.created_on) %> Index: app/views/projects/_form.rhtml =================================================================== --- app/views/projects/_form.rhtml (revision 1104) +++ app/views/projects/_form.rhtml (working copy) @@ -15,6 +15,7 @@ <% end %>

<%= f.text_field :homepage, :size => 40 %>

<%= f.check_box :is_public %>

+

<%= f.check_box :automatic_repository_creation %>

<%= wikitoolbar_for 'project_description' %> <% for @custom_value in @custom_values %> Index: app/views/queries/_form.rhtml =================================================================== --- app/views/queries/_form.rhtml (revision 1104) +++ app/views/queries/_form.rhtml (working copy) @@ -11,6 +11,11 @@ <%= check_box 'query', 'is_public' %>

<% end %> +<% if current_role.allowed_to?(:manage_public_queries) %> +

+ <%= check_box 'query', 'automatic_repository_creation' %>

+<% end %> +

<%= check_box_tag 'default_columns', 1, @query.has_default_columns?, :id => 'query_default_columns', :onclick => 'if (this.checked) {Element.hide("columns")} else {Element.show("columns")}' %>

Index: lang/lt.yml =================================================================== --- lang/lt.yml (revision 1104) +++ lang/lt.yml (working copy) @@ -129,6 +129,7 @@ field_role: Vaidmuo field_homepage: Pagrindinis puslapis field_is_public: Viešas +field_automatic_repository_creation: Create repository field_parent: Yra subprojektas field_is_in_chlog: Svarstomos problemos rodomos pokyčių žurnale field_is_in_roadmap: Svarstomos problemos rodomos veiklos grafike Index: lang/ro.yml =================================================================== --- lang/ro.yml (revision 1104) +++ lang/ro.yml (working copy) @@ -122,6 +122,7 @@ field_role: Rol field_homepage: Pagina principala field_is_public: Public +field_automatic_repository_creation: Create repository field_parent: Subproiect al field_is_in_chlog: Tichetele sunt vizibile in changelog field_is_in_roadmap: Tichetele sunt vizibile in roadmap Index: lang/zh.yml =================================================================== --- lang/zh.yml (revision 1104) +++ lang/zh.yml (working copy) @@ -125,6 +125,7 @@ field_role: 角色 field_homepage: 主页 field_is_public: 公开 +field_automatic_repository_creation: Create repository field_parent: 上级项目 field_is_in_chlog: 在更新日志中显示任务 field_is_in_roadmap: 在路线图中显示任务 Index: lang/pt.yml =================================================================== --- lang/pt.yml (revision 1104) +++ lang/pt.yml (working copy) @@ -122,6 +122,7 @@ field_role: Regra field_homepage: Página inicial field_is_public: Público +field_automatic_repository_creation: Create repository field_parent: Sub-projeto de field_is_in_chlog: Tarefas mostradas no changelog field_is_in_roadmap: Tarefas mostradas no roadmap Index: lang/pt-br.yml =================================================================== --- lang/pt-br.yml (revision 1104) +++ lang/pt-br.yml (working copy) @@ -122,6 +122,7 @@ field_role: Regra field_homepage: Pagina inicial field_is_public: Publico +field_automatic_repository_creation: Create repository field_parent: Sub-projeto de field_is_in_chlog: Tarefas mostradas no changelog field_is_in_roadmap: Tarefas mostradas no roadmap Index: lang/sr.yml =================================================================== --- lang/sr.yml (revision 1104) +++ lang/sr.yml (working copy) @@ -126,6 +126,7 @@ field_role: Uloga field_homepage: Homepage field_is_public: Javni +field_automatic_repository_creation: Create repository field_parent: Podprojekat od field_is_in_chlog: Kartice se prikazuju u changelog-u field_is_in_roadmap: Kartice se prikazuju u roadmap-u Index: lang/ru.yml =================================================================== --- lang/ru.yml (revision 1104) +++ lang/ru.yml (working copy) @@ -131,6 +131,7 @@ field_role: Роль field_homepage: Стартовая страница field_is_public: Публичный +field_automatic_repository_creation: Create repository field_parent: Родительский проект field_is_in_chlog: Задачи, отображаемые в журнале изменений field_is_in_roadmap: Задачи, отображаемые в оперативном плане Index: lang/de.yml =================================================================== --- lang/de.yml (revision 1104) +++ lang/de.yml (working copy) @@ -122,6 +122,7 @@ field_role: Rolle field_homepage: Startseite field_is_public: Öffentlich +field_automatic_repository_creation: Repository automatisch erstellen field_parent: Unterprojekt von field_is_in_chlog: Ansicht im Change-Log field_is_in_roadmap: Ansicht in der Roadmap Index: lang/bg.yml =================================================================== --- lang/bg.yml (revision 1104) +++ lang/bg.yml (working copy) @@ -122,6 +122,7 @@ field_role: Роля field_homepage: Начална страница field_is_public: Публичен +field_automatic_repository_creation: Create repository field_parent: Подпроект на field_is_in_chlog: Да се вижда ли в Изменения field_is_in_roadmap: Да се вижда ли в Пътна карта Index: lang/sv.yml =================================================================== --- lang/sv.yml (revision 1104) +++ lang/sv.yml (working copy) @@ -122,6 +122,7 @@ field_role: Roll field_homepage: Hemsida field_is_public: Offentlig +field_automatic_repository_creation: Create repository field_parent: Delprojekt av field_is_in_chlog: Brister visade i ändringslogg field_is_in_roadmap: Bsiter visade i roadmap Index: lang/ja.yml =================================================================== --- lang/ja.yml (revision 1104) +++ lang/ja.yml (working copy) @@ -123,6 +123,7 @@ field_role: 役割 field_homepage: ホームページ field_is_public: 公開 +field_automatic_repository_creation: Create repository field_parent: 親プロジェクト名 field_is_in_chlog: 変更記録に表示されている問題 field_is_in_roadmap: ロードマップに表示されている問題 Index: lang/he.yml =================================================================== --- lang/he.yml (revision 1104) +++ lang/he.yml (working copy) @@ -124,6 +124,7 @@ field_role: תפקיד field_homepage: דף הבית field_is_public: פומבי +field_automatic_repository_creation: Create repository field_parent: תת פרויקט של field_is_in_chlog: נושאים המוצגים בדו"ח השינויים field_is_in_roadmap: נושאים המוצגים במפת הדרכים Index: lang/fi.yml =================================================================== --- lang/fi.yml (revision 1104) +++ lang/fi.yml (working copy) @@ -131,6 +131,7 @@ field_role: Rooli field_homepage: Kotisivu field_is_public: Julkinen +field_automatic_repository_creation: Create repository field_parent: Alaprojekti field_is_in_chlog: Tapahtumat näytetään muutoslokissa field_is_in_roadmap: Tapahtumat näytetään roadmap näkymässä Index: lang/en.yml =================================================================== --- lang/en.yml (revision 1104) +++ lang/en.yml (working copy) @@ -131,6 +131,7 @@ field_role: Role field_homepage: Homepage field_is_public: Public +field_automatic_repository_creation: Create repository field_parent: Subproject of field_is_in_chlog: Issues displayed in changelog field_is_in_roadmap: Issues displayed in roadmap Index: lang/cs.yml =================================================================== --- lang/cs.yml (revision 1104) +++ lang/cs.yml (working copy) @@ -122,6 +122,7 @@ field_role: Role field_homepage: Úvodní field_is_public: Veřejný +field_automatic_repository_creation: Create repository field_parent: Podprojekt field_is_in_chlog: Požadavky zobrazené v změnovém logu field_is_in_roadmap: Požadavky zobrazené v roadmapě Index: lang/fr.yml =================================================================== --- lang/fr.yml (revision 1104) +++ lang/fr.yml (working copy) @@ -132,6 +132,7 @@ field_role: Rôle field_homepage: Site web field_is_public: Public +field_automatic_repository_creation: Create repository field_parent: Sous-projet de field_is_in_chlog: Demandes affichées dans l'historique field_is_in_roadmap: Demandes affichées dans la roadmap Index: lang/es.yml =================================================================== --- lang/es.yml (revision 1104) +++ lang/es.yml (working copy) @@ -119,6 +119,7 @@ field_role: Perfil field_homepage: Sitio web field_is_public: Público +field_automatic_repository_creation: Create repository field_parent: Proyecto padre field_is_in_chlog: Consultar las peticiones en el histórico field_is_in_roadmap: Consultar las peticiones en el roadmap Index: lang/nl.yml =================================================================== --- lang/nl.yml (revision 1104) +++ lang/nl.yml (working copy) @@ -122,6 +122,7 @@ field_role: Rol field_homepage: Homepage field_is_public: Publiek +field_automatic_repository_creation: Create repository field_parent: Subproject van field_is_in_chlog: Issues weergegeven in wijzigingslog field_is_in_roadmap: Issues weergegeven in roadmap Index: lang/ko.yml =================================================================== --- lang/ko.yml (revision 1104) +++ lang/ko.yml (working copy) @@ -124,6 +124,7 @@ field_role: 역할 field_homepage: 홈페이지 field_is_public: 공개 +field_automatic_repository_creation: Create repository field_parent: 상위 프로젝트 field_is_in_chlog: 변경이력(changelog)에서 보여지는 티켓들 field_is_in_roadmap: 로드맵에서 보여지는 티켓들 Index: lang/zh-tw.yml =================================================================== --- lang/zh-tw.yml (revision 1104) +++ lang/zh-tw.yml (working copy) @@ -132,6 +132,7 @@ field_role: 角色 field_homepage: 網站首頁 field_is_public: 公開 +field_automatic_repository_creation: Create repository field_parent: 父專案 field_is_in_chlog: Issues displayed in changelog field_is_in_roadmap: Issues displayed in roadmap Index: lang/pl.yml =================================================================== --- lang/pl.yml (revision 1104) +++ lang/pl.yml (working copy) @@ -119,6 +119,7 @@ field_role: Rola field_homepage: Strona www field_is_public: Publiczny +field_automatic_repository_creation: Create repository field_parent: Podprojekt field_is_in_chlog: Zagadnienie pokazywane w zapisie zmian field_is_in_roadmap: Zagadnienie pokazywane na mapie Index: lang/it.yml =================================================================== --- lang/it.yml (revision 1104) +++ lang/it.yml (working copy) @@ -122,6 +122,7 @@ field_role: Ruolo field_homepage: Homepage field_is_public: Pubblico +field_automatic_repository_creation: Create repository field_parent: Sottoprogetto di field_is_in_chlog: Contesti mostrati nel changelog field_is_in_roadmap: Contesti mostrati nel roadmap Index: extra/svn/reposman.rb =================================================================== --- extra/svn/reposman.rb (revision 1104) +++ extra/svn/reposman.rb (working copy) @@ -174,6 +174,9 @@ elsif not project.identifier.match(/^[a-z0-9\-]+$/) log("\tinvalid identifier for project #{project.name} : #{project.identifier}"); next; + elsif not project.automatic_repository_creation + log("\trepository creation not selected") + next; end repos_path = $repos_base + "/" + project.identifier Index: db/migrate/089_add_projects_repository_creation_toggle.rb =================================================================== --- db/migrate/089_add_projects_repository_creation_toggle.rb (revision 0) +++ db/migrate/089_add_projects_repository_creation_toggle.rb (revision 0) @@ -0,0 +1,9 @@ +class AddProjectsRepositoryCreationToggle < ActiveRecord::Migration + def self.up + add_column :projects, :automatic_repository_creation, :boolean, :default => true, :null => false + end + + def self.down + remove_column :projects, :automatic_repository_creation + end +end