This is Bavaria, Germany!
svn.rosi13.de:www-data$ svnadmin create /data/subversion
develop$ svn import findus4 file:///data/subversion/findus4Import to a webdav-repository
develop$ svn import findus4 http://svn.rosi13.de/svn/findus4Creating a trunk-directory, initial import, checkout:
develop$ svn mkdir http://svn.rosi13.de/svn/findus4/trunk develop$ cd findus4 develop$ svn import -m "initial import" http://svn.rosi13.de/svn/findus4/trunk develop$ mv findus4 findus4.old develop$ mkdir findus4 develop$ svn checkout http://svn.rosi13.de/svn/findus4/trunk findus4 develop$ rm rf findus4.old
|
Checkout, getting out files from repository |
svn checkout file:///data/subversion/findus4 |
|
Checkout, getting out files from repository when you are behind a proxy-server |
So, you are behind a proxyserver and want to access the repository
through this proxyserver.
|
|
Putting changed file to repository |
svn commit |
|
Which files have changed? Are there new files? |
svn status |
|
What has changed? |
svn diff |
|
New file in tree |
svn add MyNewFile.pm (schedules file to next update) |
|
Ignore files in a directory |
|
|
Moving projects from a common used repository to several single repositories |
Dump complete subversion-repository to a file: |
|
Activate creating keywords |
svn propset svn:keywords "Revision Date Id HeadURL Author" myfile.pm |
# apt-get install libsvn-notify-perl # svnnotify Missing required "--repos-path" parameterIf you get this error-message then you are ready to run this script when commiting code. To do this write a command into the shell-script post-commit, which is already there in your repository-directory:
svn:~# cd /data/svn/findus/hooks/ svn:/data/svn/findus/hooks# ls -l -rwxr-xr-x 1 www-data www-data 1489 Jan 31 22:18 post-commit -rw-r--r-- 1 www-data www-data 1390 Dec 5 19:21 post-commit.tmpl ...post-commit looks like this:
#!/bin/sh svnnotify --repos-path "$1" --revision "$2" \You get a mail like this after commit code:
--to one@dontcare.com,two@dontcare.com \
--reply-to responsible-for-everything@somewhere.com \
--language de
Revision: 329
Author: horshack
Date: 2006-01-31 22:27:05 +0100 (Tue, 31 Jan 2006)
Log Message:
-----------
this is the commit-message bla bla
Modified Paths:
--------------
trunk/findus_mini.ini
command="/usr/bin/svnserve --tunnel --root=/var/svn",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty ssh-dss AAAAB3N...
This makes that whatever program the user tries to run via ssh, he will always run
/usr/bin/svnserver --tunnel.... The user can only access svn-repositories in /var/svn.
When you have a repository /data/svn/findus/trunk he has to do this:
svn checkout svn+ssh://username@svn.juhei.org/data/svn/findus/trunk findus
|
Last modified: 27.11.2007 13:07 Impressum |
Wozu Witze ausdenken?
Das Leben schreibt sie selbst: Das haben wir jetzt 40 Jahre so gemacht, warum sollten wir das ändern? |
Why inventing jokes?
Real life does a better job: We are doing it this way for 40 years, why should we change it? |