svnconv_remember
Things to remember for the svn conversion
The purpose of this file is to function as a memo aid for the ones of us who will assist our collegues in the transition aftermath.
Read the documentation.
Procedure
Check whether you have a new enough svn:
- svn --version
The version should preferably be at least 1.4 (but earlier versions ought to work, and 1.3 does work)
The checkout command is:
svn co https: //gtsvn.uit.no/repos/trunk gtsvn
Copy existing non-cvs-files (in the cvs dev catalogues to the corresponding svn)
Placement of the svn catalogue
We here assume it is $HOME/gtsvn/.
Some of us have other systems. Thus, in all our scripts, we operate with an alias GTHOME. We urge all to put the line
export GTHOME=~/gtsvn
in their .bashrc file (or any other address than gtsvn if you would prefer that). In that way we have a flexible system.
.bashrc-file
- The paths of the type $HOME/gt etc. should be changed to $HOME/gtsvn/gt etc
- The lo, osmj, etc. aliases must be corrected, e.g. so that ~/gt must be ~/gtsvn/gt
- The up alias must be corrected, e.g.
- alias up="cd $HOME/gtsvn/ && svn up"
- alias up="cd $HOME/gtsvn/ && svn up"
- Some paths in .emacs must be corrected:
- (load "~/gtsvn/gt/script/emacs/namelex")
- (load "~/gtsvn/gt/script/emacs/correct")
- (load "~/gtsvn/gt/script/emacs/namelex")
- The makefiles in st must get updated script cat reference
- The dict/../src catalogues must have their *.sh executable
- All files in the gt/script must be executables.
Password
All users have received a password. It will be used once, and changing it is thus not that crucial. If someone wants a password to remember, they may have it changed by a superuser:
htpasswd -m /etc/subversion/svn-auth-file sally New password: ******* Re-type new password: ******* Adding password for user sally
Commands
Most commands are familiar from cvs:
- svn up (note that this only updates, it does not tell anything abot local M status)
- svn ci -m "Log message" filename
- svn log filename
Then there are new commands. The most important is:
- svn status = command to check for status (local and central modifications, will list all and only modified files)
- svn status has two modes:
- one fast, without network access - it will check only whether you have modified files locally: svn status
- one slower, with network access - it will also check against the repository: svn status -u (-u as in Update, to check whether an Update is needed)
- one fast, without network access - it will check only whether you have modified files locally: svn status
- svn status has two modes:
And remember the svn book!