プロジェクト

全般

プロフィール

Vote #64981

未完了

reposman.rb (only create when needed) - redmine.pm (choose public or private)

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
SCM extra_46
対象バージョン:
-
開始日:
2009/03/31
期日:
進捗率:

0%

予定工数:
category_id:
46
version_id:
0
issue_org_id:
3079
author_id:
4644
assigned_to_id:
0
comments:
4
status_id:
1
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I am using automatic repository creation via reposman.rb. I wanted the ability to have reposman.rb only create repositories when i wanted it to. Currently it will create them for every project. I also wanted the ability to have a public or a private repository regardless of my project being private or public.

I have included a patch done against Redmine .0.8.2. I also had to add 2 new fields to the projects table in the sql database. The 2 fields I added were create_repo and public_repo.

create_repo = tinyint(1) with a default of 0
public_repo = tinyint(1) with a default of 1

I have added 2 check boxes to the project settings and add project. They will turn on/off auto creation for the project and if create then will set the public/private access for the project.

I am only using Subversion right now so I am not sure how this will work with Git.

This obviously requires the user to have "Enable WS for repository management" checked.

This also makes it possible to utilize auto creation and give the user the ability to set up an unique repository for a project. If they want to link to a special repository on another box they can do this without being thwarted by reposman.rb trying to do its thing.


journals

+1
--------------------------------------------------------------------------------
NoMethodError in ProjectsController#add

undefined method `public_repo=' for #<Project:0xb68257d8>

RAILS_ROOT: /var/cgi-bin/redmine
Application Trace | Framework Trace | Full Trace

vendor/rails/activerecord/lib/active_record/attribute_methods.rb:251:in `method_missing'
app/controllers/projects_controller.rb:73:in `add'

i use redmine0.8.4+ruby1.8.7+rails2.2.2+apache2+passenger+mysql
!error.jpg!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0