From 75c0d5592d6bd7329295ee13b2803e49ad00d25c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 19 Oct 2012 12:31:05 +0200 Subject: [PATCH] Add subversion repo options docs --- doc/05-repositories.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/05-repositories.md b/doc/05-repositories.md index 79baf83a3..5419d3896 100644 --- a/doc/05-repositories.md +++ b/doc/05-repositories.md @@ -212,6 +212,26 @@ The VCS driver to be used is detected automatically based on the URL. However, should you need to specify one for whatever reason, you can use `git`, `svn` or `hg` as the repository type instead of `vcs`. +#### Subversion Options + +Since Subversion has no native concept of branches and tags, Composer assumes +by default that code is located in `$url/trunk`, `$url/branches` and +`$url/tags`. If your repository has a different layout you can change those +values. For example if you used capitalized names you could configure the +repository like this: + + { + "repositories": [ + { + "type": "vcs", + "url": "http://svn.example.org/projectA/", + "trunk-path": "Trunk", + "branches-path": "Branches", + "tags-path": "Tags" + } + ] + } + ### PEAR It is possible to install packages from any PEAR channel by using the `pear`