Skip to content

Commit f071b39

Browse files
committed
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
1 parent bb36fa5 commit f071b39

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

extra/svn/Redmine.pm

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@ and you will have to use this reposman.rb command line to create repository :
8282
8383
reposman.rb --redmine my.redmine.server --svn-dir /var/svn --owner www-data -u http://svn.server/svn-private/
8484
85+
=head1 REPOSITORIES NAMING
86+
87+
A projet repository must be named with the projet identifier. In case
88+
of multiple repositories for the same project, use the project identifier
89+
and the repository identifier separated with a dot:
90+
91+
/var/svn/foo
92+
/var/svn/foo.otherrepo
93+
8594
=head1 MIGRATION FROM OLDER RELEASES
8695
8796
If you use an older reposman.rb (r860 or before), you need to change
@@ -399,7 +408,7 @@ sub get_project_identifier {
399408
my $r = shift;
400409

401410
my $location = $r->location;
402-
my ($identifier) = $r->uri =~ m{$location/*([^/]+)};
411+
my ($identifier) = $r->uri =~ m{$location/*([^/.]+)};
403412
$identifier;
404413
}
405414

0 commit comments

Comments
 (0)