Mercurial > hg > soundsoftware-site
changeset 299:defe55be97b9 feature_73
Do not show external checkbox/field until the repo has been automatically populated
Pull external Hg as well as git and svn repos
Some textual changes
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 24 Mar 2011 15:48:36 +0000 |
parents | 4d4acbad8728 |
children | 034e9b00b341 6508e99869a2 6c56a595dc1c b9c2ba9e49b4 fade849e02c5 |
files | app/views/projects/settings/_repository.rhtml config/locales/en.yml extra/soundsoftware/update-external-repo.sh |
diffstat | 3 files changed, 15 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/app/views/projects/settings/_repository.rhtml Wed Mar 23 17:36:21 2011 +0000 +++ b/app/views/projects/settings/_repository.rhtml Thu Mar 24 15:48:36 2011 +0000 @@ -14,13 +14,10 @@ <% if @repository %> <%= l(:text_settings_repo_explanation) %></ br> <% if @repository.is_external %> - <p><%= l(:text_settings_repo_is_external) %></ br> + <p><%= l(:text_settings_repo_is_external) %></ br> <% else %> - <p><%= l(:text_settings_repo_is_internal) %></ br> -<% end %> - <% else %> - <%= l(:text_settings_repo_creation) %></ br> -<% end %> + <p><%= l(:text_settings_repo_is_internal) %></ br> + <% end %> </p> @@ -36,7 +33,7 @@ <p> <%= label_tag('repository_external_url', l(:label_repository_external_url)) %> - <%= text_field :repository, :external_url, :disabled => !@repository.is_external %> + <%= text_field :repository, :external_url, :disabled => !(@repository and @repository.is_external) %> <br/><em><%= l(:setting_external_repository_url) %></em> </p> @@ -51,4 +48,9 @@ </div> <%= submit_tag(l(:button_save), :onclick => remote_function(:url => { :controller => 'repositories', :action => 'edit', :id => @project }, :method => :get, :with => "Form.serialize(this.form)")) %> + +<% else %> + <%= l(:text_settings_repo_creation) %></ br> <% end %> + +<% end %>
--- a/config/locales/en.yml Wed Mar 23 17:36:21 2011 +0000 +++ b/config/locales/en.yml Thu Mar 24 15:48:36 2011 +0000 @@ -307,7 +307,7 @@ field_visible: Visible setting_external_repository: "Select this if the project's main repository is hosted somewhere else" - setting_external_repository_url: "The URL of the existing external repository" + setting_external_repository_url: "The URL of the existing external repository. Must be publicly accessible without a password" label_repository_external_url: "External repository URL" setting_tipoftheday_text: Tip of the Day setting_notifications_text: Notifications @@ -929,11 +929,11 @@ text_own_membership_delete_confirmation: "You are about to remove some or all of your permissions and may no longer be able to edit this project after that.\nAre you sure you want to continue?" text_zoom_in: Zoom in text_zoom_out: Zoom out - text_settings_repo_creation: The repository for a project should be set up automatically within a few minutes of the project being created.</p><p>You should not have to adjust any settings here, unless you wish to use this repository only to track a repository hosted elsewhere.</p><p>Please check again in ten minutes, and <a href="/projects/soundsoftware-site/wiki/Help">contact us</a> if there is any problem. - text_settings_repo_explanation: Normally your project's primary repository will be the Mercurial repository hosted at this site.<p>However, if you already have your project hosted somewhere else, you can specify here your existing external repository's URL – then this site will track that repository in a read-only “mirror” copy. External Mercurial, git and Subversion repositories can be tracked. Note that you cannot switch to an external repository if you have already made any commits to the repository hosted here. + text_settings_repo_creation: <b>Creating repository...</b></p><p>The source code repository for a project will be set up automatically within a few minutes of the project being created.</p><p>Please check again in five minutes, and <a href="/projects/soundsoftware-site/wiki/Help">contact us</a> if there is any problem.</p><p>If you wish to use this project to track a repository that is already hosted somewhere else, please wait until the repository has been created here and then return to this settings page to configure it.</p><p>If you don't want a repository at all, go to the Modules tab and switch it off there. + text_settings_repo_explanation: <b>External repositories</b><p>Normally your project's primary repository will be the Mercurial repository hosted at this site.<p>However, if you already have your project hosted somewhere else, you can specify your existing external repository's URL here – then this site will track that repository in a read-only “mirror” copy. External Mercurial, git and Subversion repositories can be tracked. Note that you cannot switch to an external repository if you have already made any commits to the repository hosted here. text_settings_repo_is_internal: Currently the repository hosted at this site is the primary repository for this project. text_settings_repo_is_external: Currently the repository hosted at this site is a read-only copy of an external repository. - text_settings_repo_need_help: Please <a href="mailto:info@soundsoftware.ac.uk">contact us</a> if you need help deciding how best to set this up.<br>We can also import complete revision history from other systems into a new primary repository for you if you wish. + text_settings_repo_need_help: Please <a href="/projects/soundsoftware-site/wiki/Help">contact us</a> if you need help deciding how best to set this up.<br>We can also import complete revision history from other systems into a new primary repository for you if you wish.
--- a/extra/soundsoftware/update-external-repo.sh Wed Mar 23 17:36:21 2011 +0000 +++ b/extra/soundsoftware/update-external-repo.sh Thu Mar 24 15:48:36 2011 +0000 @@ -85,7 +85,8 @@ ;; *) hg --config extensions.convert= convert --datesort "$remote_repo" "$project_repo_mirror" || - git clone "$remote_repo" "$project_repo_mirror" + git clone "$remote_repo" "$project_repo_mirror" || + hg clone "$remote_repo" "$project_repo_mirror" ;; esac && success=true