Project

General

Profile

PluginScmExtensions » History » Version 5

Matthew Paul, 2016-03-06 17:38

1 1 Arnaud Martel
h1. Introduction
2
3
Main features of the plugin:
4 3 Arnaud Martel
* Add 3 actions in repository views: "upload files", "new folder" and "delete file/folder". Right now, only subversion and filesystem SCM are supported...
5 1 Arnaud Martel
* Add a new macro _scm_show_ to include repository inside a wiki page 
6
7
Development was done using REDMINE trunk r3826 (=> 0.9.5 +) but any release after 0.9 should work
8
9
About subversion support:
10
To commit changes in Subversion, the plugin opens the repository with the file protocol. For this reason, you need the following:
11
* The repositories have to be installed on the REDMINE server.
12
* Plugin will replace the beginning of your repository location ([protocol]://[server]/" with "file:///svnroot/". You may need to create a symbolic link /svnroot for this to work...  
13
14 3 Arnaud Martel
About filesystem support:
15
if root path url ends with "files", the plugin will try to maintain an alternate folders tree for the files attributes. To do that, the plugin will look if an "attributes" folder exists at the same level as the "files" folder. For example, if your root path is "/repo/project/files", the plugin will look for "/repo/project/attributes". If this folder exists then files attributes (currently: author name, only) will be managed in this folder...
16
17
18 1 Arnaud Martel
h1. Setup
19
20
h3. 1. Install plugin into vendor/plugins
21
22
Install redmine_scm_extensions with:
23
* ruby script/plugin install http://github.com/amartel/redmine_scm_extensions.git
24
25
No DB migration is required...
26
27
h3. 2. Restart your web server
28
29
30
h3. 3. Configure REDMINE with your web browser
31
32 2 Arnaud Martel
If everything is OK, you should see "SCM extensions" in the plugin list (Administration -> Plugins)
33 1 Arnaud Martel
34
A new permission is now available (SCM extensions -> Update repository) and you have to assign it to the roles you need
35 3 Arnaud Martel
36
h1. History
37
38 4 Matthew Paul
3.2 2016-03-07
39
* Wanted to use this as a plugin for latest version 3.2 but got errors
40
* Changed the /plugins/redmine_scm_extensions/config/routes.rb as follows -
41
42
OLD
43
#map.connect ':controller/:action/:id'
44
match 'projects/:id/scm_extensions/:action', :controller => 'scm_extensions'
45
46
NEW
47
#map.connect ':controller/:action/:id'
48
get 'projects/:id/scm_extensions/:action', :controller => 'scm_extensions'
49
post 'projects/:id/scm_extensions/:action', :controller => 'scm_extensions'
50
51
* NOTE - I am NOT an expert just an enthusiastic user so if there's a better way by all means use it. But, for me, this worked and I can now do the following -
52
1) Create a repository directory under the standard /files directory for any given project like files/repositories/internal
53
2) add that as a repository
54
3) Add the SCM priv to manager, and add the SCM module to a project
55 5 Matthew Paul
4) You will now see the add file/directory etc
56 4 Matthew Paul
57 3 Arnaud Martel
0.0.2 : 2010-08-03
58
* new: support READ/WRITE operations for filesystem SCM
59
* new: send email to selected members if upload completes successfully
60
61
0.0.1 : 2010-07-23
62
Initial release