Difference between revisions of "Subversion"

From NikiWiki
Jump to: navigation, search
(Simple checkout)
(Working with trunks and branches)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
[[Category:Projects]]
 
==netlabs.org Subversion repositories==
 
==netlabs.org Subversion repositories==
 
===Basic setup===
 
===Basic setup===
For new projects we provide Subversion repositories instead of CVS as so far. To access that you need a subversion client:
+
For new projects we provide Subversion repositories instead of CVS. To access those you need a subversion client:
  
 
* [http://subversion.tigris.org/ Subversion homepage]
 
* [http://subversion.tigris.org/ Subversion homepage]
* [http://silk.apana.org.au/subversion/ Subversion for OS/2]
+
* [http://smedley.info/os2ports/index.html Subversion for OS/2]
  
There are also versions for Linux, BSD, Mac & Windows.
+
There are also clients for Linux, BSD, Mac and Windows.
  
The OS/2 version seems to have a but right now, you have to <tt>SET LANG=en_US</tt> to get it to work properly at the moment.
+
The OS/2 client seems to have a bug right now, you have to <tt>SET LANG=en_US</tt> to get it to work properly at the moment.
  
 
===Simple checkout===
 
===Simple checkout===
After you installed subversion you can do a checkout of a project like this:
+
After you install subversion, you can do a project checkout like this:
  
 
  svn co --username <myuser> http://svn.netlabs.org/repos/projectname
 
  svn co --username <myuser> http://svn.netlabs.org/repos/projectname
  
Where projectname needs to be replaced by one of our projects for sure :)
+
Where projectname needs to be replaced by one of our projects of course :)
 +
 
 +
===Working with trunks and branches===
 +
 
 +
* [http://svnbook.red-bean.com/en/1.4/svn.branchmerge.using.html Using Branches]
 +
* [http://svn.collab.net/repos/svn/trunk/doc/user/svn-best-practices.html Subversion Best Practices]
  
 
===More===
 
===More===
  
We will show some more examples later, feel free to add more yourself :)
+
We will show more examples later, feel free to add more yourself :)
 +
 
 +
===svn: Can't recode string===
 +
If you get this error, you might have to change the following variables:
 +
 
 +
export LC_CTYPE="de_CH.UTF-8"
 +
export LANG="de_CH.UTF-8"
 +
 
 +
(use <tt>SET</tt> on OS/2 instead of <tt>export</tt>)
 +
 
 +
instead of de_CH you should choose the correct value for you, like en_US or so. Note that in general it's  a '''bad''' idea to use umlauts, and similar characters, in filenames as this problem definitely has to do with such characters in filenames.
 +
==netlabs.org TRAC==
 +
TRAC is very nice bugtracking software combined with much more, like a Wiki, a SVN Webinterface and so on. We will write more about TRAC soon. So far you can check the current repositories:
 +
 
 +
* http://svn.netlabs.org

Latest revision as of 21:48, 17 January 2008

netlabs.org Subversion repositories

Basic setup

For new projects we provide Subversion repositories instead of CVS. To access those you need a subversion client:

There are also clients for Linux, BSD, Mac and Windows.

The OS/2 client seems to have a bug right now, you have to SET LANG=en_US to get it to work properly at the moment.

Simple checkout

After you install subversion, you can do a project checkout like this:

svn co --username <myuser> http://svn.netlabs.org/repos/projectname

Where projectname needs to be replaced by one of our projects of course :)

Working with trunks and branches

More

We will show more examples later, feel free to add more yourself :)

svn: Can't recode string

If you get this error, you might have to change the following variables:

export LC_CTYPE="de_CH.UTF-8"
export LANG="de_CH.UTF-8"

(use SET on OS/2 instead of export)

instead of de_CH you should choose the correct value for you, like en_US or so. Note that in general it's a bad idea to use umlauts, and similar characters, in filenames as this problem definitely has to do with such characters in filenames.

netlabs.org TRAC

TRAC is very nice bugtracking software combined with much more, like a Wiki, a SVN Webinterface and so on. We will write more about TRAC soon. So far you can check the current repositories: