summaryrefslogtreecommitdiffstats
path: root/extra/svn
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-24 13:21:43 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-24 13:21:43 +0000
commitf071b39d268a52aca556782aadadef7856158d31 (patch)
tree91276bf28006e8166e6347b25e3672fb841b0ba8 /extra/svn
parentbb36fa5d1208dcf24506e7d5c600443c5b83828d (diff)
downloadredmine-f071b39d268a52aca556782aadadef7856158d31.tar.gz
redmine-f071b39d268a52aca556782aadadef7856158d31.zip
Makes Redmine.pm work with multiple repositories per project (#779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9256 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra/svn')
-rw-r--r--extra/svn/Redmine.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/extra/svn/Redmine.pm b/extra/svn/Redmine.pm
index fcc87ca13..3125d510e 100644
--- a/extra/svn/Redmine.pm
+++ b/extra/svn/Redmine.pm
@@ -82,6 +82,15 @@ and you will have to use this reposman.rb command line to create repository :
reposman.rb --redmine my.redmine.server --svn-dir /var/svn --owner www-data -u http://svn.server/svn-private/
+=head1 REPOSITORIES NAMING
+
+A projet repository must be named with the projet identifier. In case
+of multiple repositories for the same project, use the project identifier
+and the repository identifier separated with a dot:
+
+ /var/svn/foo
+ /var/svn/foo.otherrepo
+
=head1 MIGRATION FROM OLDER RELEASES
If you use an older reposman.rb (r860 or before), you need to change
@@ -399,7 +408,7 @@ sub get_project_identifier {
my $r = shift;
my $location = $r->location;
- my ($identifier) = $r->uri =~ m{$location/*([^/]+)};
+ my ($identifier) = $r->uri =~ m{$location/*([^/.]+)};
$identifier;
}