Difference between revisions of "CVS and Subversion"

From YobiWiki
Jump to navigation Jump to search
m
 
Line 10: Line 10:
 
find /home/svn/linux-doc -perm -200 -exec chmod g+w {} \;
 
find /home/svn/linux-doc -perm -200 -exec chmod g+w {} \;
 
To checkout the project:
 
To checkout the project:
svn checkout svn+ssh://devel.yobi.be/home/svn/linux-doc/trunk trunk
+
svn checkout svn+ssh://devel.yobi.be/home/svn/linux-doc/trunk linux-doc

Revision as of 22:19, 7 September 2006

Subversion

Tips

To convert a CVS repository:

  • I'm using ssh and developers are members of the src group, CVS repository is in /home/cvs
  • I create /home/svn with the following flags and ownerships, same as for /home/cvs
drwxr-sr-x cvs:src /home/svn
  • To convert /home/cvs/linux-doc repository:
su -s /bin/bash cvs -c "cvs2svn -s /home/svn/linux-doc /home/cvs/linux-doc"
  • All files and dirs for which user has write access, give it also to group
find /home/svn/linux-doc -perm -200 -exec chmod g+w {} \;

To checkout the project:

svn checkout svn+ssh://devel.yobi.be/home/svn/linux-doc/trunk linux-doc