# HG changeset patch # User luisf # Date 1297268551 0 # Node ID 00e958b1f6f80b0ef02e6c1311fd51f31e89a478 # Parent f5860b03d36529e342e44d472c24b9bf69e6b50e DEV commit: working in the repository config tab diff -r f5860b03d365 -r 00e958b1f6f8 app/controllers/repositories_controller.rb --- a/app/controllers/repositories_controller.rb Tue Feb 08 15:07:08 2011 +0000 +++ b/app/controllers/repositories_controller.rb Wed Feb 09 16:22:31 2011 +0000 @@ -36,6 +36,9 @@ def edit @repository = @project.repository + + params[:repository_scm] = 'Mercurial' + if !@repository @repository = Repository.factory(params[:repository_scm]) @repository.project = @project if @repository diff -r f5860b03d365 -r 00e958b1f6f8 app/views/projects/settings/_repository.rhtml --- a/app/views/projects/settings/_repository.rhtml Tue Feb 08 15:07:08 2011 +0000 +++ b/app/views/projects/settings/_repository.rhtml Wed Feb 09 16:22:31 2011 +0000 @@ -12,7 +12,9 @@ <% if !@repository || !@repository.url %> <% end %> -

<%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %>

+

<%= label_tag('repository_scm', l(:label_scm)) %> +<%= remote_function(:url => { :controller => 'repositories', :action => 'edit', :id => @project }, :method => :get, :with => "Form.serialize(this.form)") %>

+ <%= repository_field_tags(f, @repository) if @repository %>