Subversion admin
Notes about our needs:
We are a small group. (2 main programmers, occasional help from ~3 others. ~3 managers who occasionally request changes or additions to content.)
Our project is a web site. We are mostly using svn:
SVN best practice is to:
1. Create a repository:
Huh? No changes? Oh wait...
2. Add a project:
Note that what I probably intended was to make a css folder in the htdocs project in myrepository...
We are a small group. (2 main programmers, occasional help from ~3 others. ~3 managers who occasionally request changes or additions to content.)
Our project is a web site. We are mostly using svn:
- to back up our work
- to document changes we make (communication/collaboration)
- for the security of being able to roll back changes that don't work out
SVN best practice is to:
- keep working files in a URL like repository/trunk (will do)
- keep parallel efforts in repository/branches (The only time we would have parallel efforts is in the case of a long, drawn-out redesign. We intend never to do that again, rather just incrementally evolve.)
- keep "snapshots" in repository/tags (yeah, maybe)
1. Create a repository:
[steve@www steve]$ svnadmin create myrepository
[steve@www steve]$ ls -lp myrepository/
total 28
drwxr-xr-x 2 steve web 4096 Dec 7 15:19 conf/
drwxr-xr-x 2 steve web 4096 Dec 7 15:19 dav/
drwxr-sr-x 5 steve web 4096 Dec 7 15:19 db/
-r--r--r-- 1 steve web 2 Dec 7 15:19 format
drwxr-xr-x 2 steve web 4096 Dec 7 15:19 hooks/
drwxr-xr-x 2 steve web 4096 Dec 7 15:19 locks/
-rw-r--r-- 1 steve web 229 Dec 7 15:19 README.txt
[steve@www steve]$ svn mkdir file:///home/steve/myrepository/tags -m 'create steve/myrepository/tags/'
Committed revision 1.
[steve@www steve]$ svn mkdir file:///home/steve/myrepository/branches -m 'create steve/myrepository/branches/'
Committed revision 2.
[steve@www steve]$ svn mkdir file:///home/steve/myrepository/trunk -m 'create steve/myrepository/trunk/'
Committed revision 3.
[steve@www steve]$ ls -lp myrepository/
total 28
drwxr-xr-x 2 steve web 4096 Dec 7 15:19 conf/
drwxr-xr-x 2 steve web 4096 Dec 7 15:19 dav/
drwxr-sr-x 5 steve web 4096 Dec 7 15:20 db/
-r--r--r-- 1 steve web 2 Dec 7 15:19 format
drwxr-xr-x 2 steve web 4096 Dec 7 15:19 hooks/
drwxr-xr-x 2 steve web 4096 Dec 7 15:19 locks/
-rw-r--r-- 1 steve web 229 Dec 7 15:19 README.txt
Huh? No changes? Oh wait...
[steve@www steve]$ svn list file:///home/steve/myrepository
branches/
tags/
trunk/
2. Add a project:
[steve@www steve]$ svn mkdir file:///home/steve/myrepository/trunk/htdocs -m 'create htdocs project'
Committed revision 4.
[steve@www steve]$ svn import css file:///home/steve/myrepository/trunk/htdocs -m 'import css/'
Adding css/ttStyles.css
Adding css/tt_squirrel.css
Adding css/media.css
Adding css/oldSite.css
Committed revision 5.
[steve@www steve]$ svn list file:///home/steve/myrepository/trunk/
htdocs/
[steve@www steve]$ svn list file:///home/steve/myrepository/trunk/htdocs
media.css
oldSite.css
ttStyles.css
tt_squirrel.css
Note that what I probably intended was to make a css folder in the htdocs project in myrepository...
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home