Project

General

Profile

Overview » History » Version 21

Marc Mengel, 10/29/2009 02:09 PM

1 21 Marc Mengel
Site Documentation pages:
2 21 Marc Mengel
3 21 Marc Mengel
[[CreatingRepositories]]
4 21 Marc Mengel
[[ProjectTimelines]]
5 21 Marc Mengel
6 21 Marc Mengel
7 1 Marc Mengel
h1. Creating Repositories
8 1 Marc Mengel
9 13 Marc Mengel
This site is running a slightly modified version of Redmine, to allow Admin users to select what sort of repository they
10 12 Marc Mengel
want to create. (see "here":http://www.redmine.org/issues/4002 and "here":http://www.redmine.org/issues/4003 for details.) 
11 1 Marc Mengel
12 1 Marc Mengel
Create a project by 
13 1 Marc Mengel
* clicking on the Projects link in the top dark bar of the Redmine page, 
14 1 Marc Mengel
* clicking on "New Project" to create the project
15 1 Marc Mengel
* Filling out the form
16 1 Marc Mengel
* Hitting save
17 1 Marc Mengel
18 1 Marc Mengel
Once you have a project created, 
19 1 Marc Mengel
* pick it from the projects page, and 
20 1 Marc Mengel
* click on the "Settings" tab, then
21 1 Marc Mengel
* click on the "Repository" sub-tab
22 1 Marc Mengel
* Choose a repository type (CVS, Git, Subversion)
23 7 Marc Mengel
* put "create_me" (without quotes) in the first input box   (or "file:///create_me" for Subversion)
24 9 Marc Mengel
* hit Create.
25 1 Marc Mengel
26 9 Marc Mengel
Soon thereafter a cron job will wake up (promptly at :00, :15, :30, or :45 after the hour) 
27 9 Marc Mengel
and make your repository along with a local project account, etc.  When that happens
28 9 Marc Mengel
the location of the repository will be updated, usually to /cvs/projects/your-project-name.
29 9 Marc Mengel
So wait for the 15 minute boundary, and go back to your Settings tab, and pick the
30 10 Marc Mengel
Repository sub-tab, and you should see the repository path has been updated.
31 1 Marc Mengel
32 1 Marc Mengel
Oh, and don't forget to add yourself (and other interested parties) as members
33 9 Marc Mengel
of the project in the Settings/Members tab.  This also will take effect at :00, :15, :30 or :45 
34 9 Marc Mengel
after the hour.
35 1 Marc Mengel
36 20 Marc Mengel
h1. Read/Write access to the repositories
37 20 Marc Mengel
38 19 Marc Mengel
Then to push existing code into the repository:
39 19 Marc Mengel
* Git: from a local repository, do:
40 17 Marc Mengel
> git push --all --force  ssh://p-project-name@cdcvs4.fnal.gov/cvs/projects/project-name
41 4 Marc Mengel
* Subversion: with a skeleton directory do
42 15 Marc Mengel
> svn import directory ssh://p-project-name@cdcvs4.fnal.gov/cvs/projects/project-name
43 1 Marc Mengel
* CVS: with directory of files do
44 1 Marc Mengel
> cd directory; cvs -d :ext:p-project-name@cdcvs4.fnal.gov/cvs projects/project-name import modulename tag1 tag2
45 1 Marc Mengel
Where "project-name" above is replaced by your project's internal name you set when you created it.
46 1 Marc Mengel
Note the account name part is "p-" in front of your project name.
47 19 Marc Mengel
48 19 Marc Mengel
If you want to start from an empty repository:
49 19 Marc Mengel
* Git: 
50 19 Marc Mengel
> git clone   ssh://p-project-name@cdcvs4.fnal.gov/cvs/projects/project-name
51 19 Marc Mengel
* Subversion: 
52 19 Marc Mengel
> svn checkout ssh://p-project-name@cdcvs4.fnal.gov/cvs/projects/project-name/trunk
53 19 Marc Mengel
* CVS: with directory of files do
54 19 Marc Mengel
> mkdir empty; cd empty ; cvs -d :ext:p-project-name@cdcvs4.fnal.gov/cvs projects/project-name import modulename tag1 tag2
55 19 Marc Mengel
> cd ..; cvs -d :ext:p-project-name@cdcvs4.fnal.gov/cvs projects/project-name checkout modulename.
56 19 Marc Mengel
Where "project-name" above is replaced by your project's internal name you set when you created it.
57 19 Marc Mengel
Note the account name part is "p-" in front of your project name.
58 19 Marc Mengel
59 15 Marc Mengel
60 2 Marc Mengel
61 1 Marc Mengel
Then you can use ssh to access your repository, and if you add
62 9 Marc Mengel
members to the projectin the Settings/Members tab, they will be added to the .k5login for the
63 9 Marc Mengel
account.  This also will take effect at :00, :15, :30 or :45  after the hour.
64 1 Marc Mengel
65 20 Marc Mengel
h1. Public access to repositories
66 20 Marc Mengel
67 4 Marc Mengel
If your project is "public" in redmine, it should also be available (readonly) as
68 4 Marc Mengel
* http://cdcvs4.fnal.gov/projects/project-name for Git or
69 4 Marc Mengel
* http://cdcvs4.fnal.gov/subversion/project-name for Subversion or
70 4 Marc Mengel
* :pserver://anonymous@cdcvs4.fnal.gov/cvs/project/project-name for CVS (by request)
71 20 Marc Mengel
72 20 Marc Mengel
Once we go production, this will use "cdcvs" instead of "cdcvs4", and be visible offsite.