Project

General

Profile

Overview » History » Version 13

Marc Mengel, 10/08/2009 11:54 AM

1 1 Marc Mengel
h1. Creating Repositories
2 1 Marc Mengel
3 13 Marc Mengel
This site is running a slightly modified version of Redmine, to allow Admin users to select what sort of repository they
4 12 Marc Mengel
want to create. (see "here":http://www.redmine.org/issues/4002 and "here":http://www.redmine.org/issues/4003 for details.) 
5 1 Marc Mengel
6 1 Marc Mengel
Create a project by 
7 1 Marc Mengel
* clicking on the Projects link in the top dark bar of the Redmine page, 
8 1 Marc Mengel
* clicking on "New Project" to create the project
9 1 Marc Mengel
* Filling out the form
10 1 Marc Mengel
* Hitting save
11 1 Marc Mengel
12 1 Marc Mengel
Once you have a project created, 
13 1 Marc Mengel
* pick it from the projects page, and 
14 1 Marc Mengel
* click on the "Settings" tab, then
15 1 Marc Mengel
* click on the "Repository" sub-tab
16 1 Marc Mengel
* Choose a repository type (CVS, Git, Subversion)
17 7 Marc Mengel
* put "create_me" (without quotes) in the first input box   (or "file:///create_me" for Subversion)
18 9 Marc Mengel
* hit Create.
19 1 Marc Mengel
20 9 Marc Mengel
Soon thereafter a cron job will wake up (promptly at :00, :15, :30, or :45 after the hour) 
21 9 Marc Mengel
and make your repository along with a local project account, etc.  When that happens
22 9 Marc Mengel
the location of the repository will be updated, usually to /cvs/projects/your-project-name.
23 9 Marc Mengel
So wait for the 15 minute boundary, and go back to your Settings tab, and pick the
24 10 Marc Mengel
Repository sub-tab, and you should see the repository path has been updated.
25 1 Marc Mengel
26 1 Marc Mengel
Oh, and don't forget to add yourself (and other interested parties) as members
27 9 Marc Mengel
of the project in the Settings/Members tab.  This also will take effect at :00, :15, :30 or :45 
28 9 Marc Mengel
after the hour.
29 1 Marc Mengel
30 1 Marc Mengel
Then if you're using:
31 1 Marc Mengel
* Git: from a local repository, do: 
32 1 Marc Mengel
> git push --all --force  ssh://p-project-name@cdcvs4.fnal.gov/cvs/projects/project-name
33 4 Marc Mengel
* Subversion: with a skeleton directory do
34 6 Marc Mengel
> svn import directory ssh://p-project-name@cdcvs4.fnal.gov/cvs/projects/project-name
35 9 Marc Mengel
* CVS: with directory of files do
36 9 Marc Mengel
> cd directory; cvs -d :ext:p-project-name@cdcvs4.fnal.gov/cvs projects/project-name import modulename tag1 tag2
37 2 Marc Mengel
38 1 Marc Mengel
Then you can use ssh to access your repository, and if you add
39 9 Marc Mengel
members to the projectin the Settings/Members tab, they will be added to the .k5login for the
40 9 Marc Mengel
account.  This also will take effect at :00, :15, :30 or :45  after the hour.
41 1 Marc Mengel
42 4 Marc Mengel
If your project is "public" in redmine, it should also be available (readonly) as
43 4 Marc Mengel
* http://cdcvs4.fnal.gov/projects/project-name for Git or
44 4 Marc Mengel
* http://cdcvs4.fnal.gov/subversion/project-name for Subversion or
45 4 Marc Mengel
* :pserver://anonymous@cdcvs4.fnal.gov/cvs/project/project-name for CVS (by request)