SVN Basic Tutorial: Formatvorlage Des Untertitelmasters Durch Klicken Bearbeiten Avoiding Headaches ™
SVN Basic Tutorial: Formatvorlage Des Untertitelmasters Durch Klicken Bearbeiten Avoiding Headaches ™
SVN Basic Tutorial: Formatvorlage Des Untertitelmasters Durch Klicken Bearbeiten Avoiding Headaches ™
Formatvorlage
Avoidingdes
headaches
Untertitelmasters
™
durch Klicken bearbeiten
Direct deploy
Test
SVN development (in SVN terms)
svn update
Test
How it works
The «.svn» directory is used by subversion to keep track of changes in the current
directory tree.
Do not change it, copy it somewhere else or delete it!
Fetching an existing project
Adding some files to the project
Adding some files to the project
Adding some files to the project
Adding some files to the project
Adding some files to the project
Updating working copy
Updating working copy
Updating working copy
Deploy with SVN
When having SSH access to a server, deploying
and updating becomes as easy as:
$ ssh user@server.com
$ cd path/to/project
$ svn update
(Or "svn co" if the project is not yet deployed)
Merging and conflicts
In the following schema, two developers try to
commit changes to a same file:
echo ‘hello to’;
Developer 1 echo $username;
We can then
•
• index.php.r8 is the version before the update
• index.php.r9 is the version as in SVN server
• index.php.mine is the version you had in your
directory before committing
SVN Conflicts
We can edit the files until all conflicts are solved,
then tell SVN it should accept our new working
copy:
SVN Conflicts
svn commit
svn://project/path/trunk
$ svn copy
-m “tagging version 1.1 of the project”
svn://path/to/project
svn://path/to/tags/1.1
-
“Fixed bug”
-
“Updated”
-
“Saved work”
-
“Updating”
-
“Merging changes”
-
“Saving work of 10/3/2010”
Examples of GOOD commit messages:
-
“Adding CSS definitions needed to create a lightbox
overlay when focus is on the offers iframe”
-
“Fixed bug with session expiring after browser restart on
IE7”
-
“Updated the logo with the new colors provided”
-
“Adding interfaces for the new blog feature
If there’s errors, fix them first! (do not work on broken projects)
Develop
Test changes