Svn: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Brian Wilson (talk | contribs)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Help is on the web ==
Online copy of [http://svnbook.red-bean.com/en/1.1/index.html The turtle book]
Online copy of [http://svnbook.red-bean.com/en/1.1/index.html The turtle book]


== iMap lives here ==


The repository for iMap is at svn://svn.wildsong.biz/var/lib/svn/iMap
=== iMap lives here ===
This is not permanent... I intend to have a web browseable archive soon at http://svn.wildsong.biz/
 
iMap was to be the successor to Adam Ryan's ELLAmaps but the version I grabbed is... well... not finished. Nonetheless the here it is.
 
The repository for iMap is at http://svn.wildsong.biz/


Use Tortoise SVN with Windows to access the above URL to checkout code.
Use Tortoise SVN with Windows to access the above URL to checkout code.


==Creating a new project==
== Linux ==
 
The rest of this doc pretty much gives help for using svn on the machine where the source code lives. (svn.wildsong.biz
 
=== Creating a new project ===


  # create the repository
  # create the repository
Line 26: Line 34:
  cd ''project_name''
  cd ''project_name''


===Making it work from svnserve===
=== Making it work from svnserve ===


You have to set up the svnserve.conf and passwd files in the
You have to set up the svnserve.conf and passwd files in the
Line 33: Line 41:
username/password pairs in the passwd file.
username/password pairs in the passwd file.


==Normal day to day stuff==
=== Normal day to day stuff ===


Add a file: svn add ''filename''
Add a file: svn add ''filename''

Latest revision as of 21:19, 10 May 2006

Help is on the web

Online copy of The turtle book


iMap lives here

iMap was to be the successor to Adam Ryan's ELLAmaps but the version I grabbed is... well... not finished. Nonetheless the here it is.

The repository for iMap is at http://svn.wildsong.biz/

Use Tortoise SVN with Windows to access the above URL to checkout code.

Linux

The rest of this doc pretty much gives help for using svn on the machine where the source code lives. (svn.wildsong.biz

Creating a new project

# create the repository
svnadmin create /repository/path
# set up source files and import them into new repository
mkdir /path/to/source/tree
cd /path/to/source/tree
mkdir branches tags trunk
cp -r source_code trunk
svn import /path/to/source/tree file:///repository/path -m initial_import

# destroy temp copy of source files and checkout svn controlled copy
cd ~/src
rm -rf /path/to/source/tree
svn checkout file:///repository/path project_name
cd project_name

Making it work from svnserve

You have to set up the svnserve.conf and passwd files in the /repository/path/conf directory. The path and repository name need to be updated in the conf file, and you need to put plaintext username/password pairs in the passwd file.

Normal day to day stuff

Add a file: svn add filename

Commit some changes: svn commit filename

Update from server: svn update