How can I add repositories?

Added by jhony gonzalez over 9 years ago

Hi everybody.

I want to ask for help with this: I want to add a repositorie but I don´t how to set "SCM", "URL", "Login", "Password".
Please, could anybody explain me please that?

Thanks in advance.

Regards,

Jhony

Replies (6)

RE: How can I add repositories? - Added by Thomas Lecavelier over 9 years ago

Hi Jhony,

First of all, you have to know that Redmine don't create repositories out of the box (there's a perl script that enable dynamic SVN creation, but I don't recommand it since it requires advanced admin skills). If you have already a repository enable (SVN, Bazaar, CVS, git, mercurial, darcs), you have to choose the matching type on the SCM field. The url depend upon the SCM choosen, and login and password too. So, can you precise what SCM you want to setup?

RE: How can I add repositories? - Added by jhony gonzalez over 9 years ago

First of all, thanks for the response.

I want to set SVN or CVS. Today I created a repository (SVN) by console, and it automatically created many subfolders (bin, iconv, scripst, share, tmp)..... and a README.txt file. I want to know where and how do I upload files to the repository.

Than you very much for your help.

Regards,

Jhony

RE: How can I add repositories? - Added by Thomas Lecavelier over 9 years ago

Ok, everyone begin a day or another :)

You won't upload repositories to Redmine, put you'll say Redmine where it can find your repository, so it can read interesting infos from there.

Before starting, the subfolder you notice are not created by svn. Can you precise how you create it? FYI, when creating an svn repository, I do that:

$ cd /var
$ svnadmin create myCoolAndNewRepository

With theses commands, the repository is stored at /var/myCoolAndNewRepository directory. Note that you'll never access write or read anything from this directory: it's binary datas, and not a working directory. To know more, I warmly recommand you to read that excellent book: The Subversion red book You can skip chapter 1 since you're a beginner, but read carefully chapter 2 to understand.

Still here? Now that you're a master in svn command usage, you can configure your repository in redmine: just choose SVN in the SCM field, then put the path of your binary repository. If you need user/pwd, put them. You're done!

RE: How can I add repositories? - Added by jhony gonzalez over 9 years ago

Hi Thomas.

I tried the guide you recommended me, and I´m still having trouble with that, I don´t what´s the mistake. Please, have a look at the attached file.

As it is in Spanish, this is the translation:
svn: Too many parameters for the import command

Could you please tell me what´s wrong and how to correct it?

Thanks in advance.

Regards,

Jhony

svn_import.PNG (102 KB)

RE: How can I add repositories? - Added by Anonymous over 9 years ago

Hi, Redmine itself doesn't create/manage repositories, it just reads logs from them. If you're having trouble getting a subversion repository up and running, then it would probably be worth while taking a look at the subversion documentation at http://svnbook.red-bean.com/ Chapter 5 details how to create repositories and chapter 1 details how to load data in to a new repository.

Another good source of documentation for subversion for Windows is at http://tortoisesvn.net/support where you can look at spanish/english documentation and it guides you through how to setup and use repositories on windows.

Cheers

Russell

RE: How can I add repositories? - Added by Thomas Lecavelier over 9 years ago

Damn! you just have to protect that ugly windows path! Blank space are separator in windows, in as likely every CLI. Just wrap your repository path in double quote: "C:\Ugly sh*ty path with painful blank space\"

(1-6/6)