SVN Quick Handsheet
under construction
Creating repository
svnadmin create repopath
Noe that web server user must have read/write permission to <em>repopath</em> directory.
Users permissions
Edit repopath/conf/svnserve.conf
[general] # anonymous users access level (none/write/read) anon-access = read # authorized users access level (none/write/read) auth-access = write # filename where users passwords are stored password-db = passwd
Edit repopath/conf/passwd
[users] malczak = somepassword sobstel = someotherpassword
Commands
- importing project -
svn import
svn checkout
svn export
svn status
'A' Added
'C' Conflicted
'D' Deleted
'I' Ignored
'M' Modified
'R' Replaced
'X' item is unversioned, but is used by an externals definition
'?' item is not under version control
'!' item is missing (removed by non-svn command) or incomplete
'~' versioned item obstructed by some item of a different kind
- canceling changes -
svn revert
svn commit
svn update
- tracking changes
svn log
svn diff
, e.g.
svn diff -r 120:145 index.php
- restore to revision 120:
svn merge -r 145:120 index.php
- conflicts
svn resolved index.php
(we have 4 files: index.php, index.php.mine, index.php.r120, index.php.r145 - we're editing index.php and then svn resolved)
- keywords
- svn:ignore
- svn:external
- locks:
svn lock index.php -m "reason for locking"
svn unlock index.php
, forcing unlock
svn unlock --force index.php
Last modified: 2008/08/06 19:35 by Przemek Sobstel