6
edits
(→Notes) |
m (→How to Use SVN: typo, section about patches) |
||
Line 80: | Line 80: | ||
'''Usage: svn co <source> <dest>''' | '''Usage: svn co <source> <dest>''' | ||
SVN bases | SVN bases its repositories on URLs, so to check out code, you’ll need a URL. For example, to checkout the code for mozilla.com anonymously you could type: | ||
''svn co http://svn.mozilla.org/projects/mozilla.com/trunk/ mozilla.com/'' | ''svn co http://svn.mozilla.org/projects/mozilla.com/trunk/ mozilla.com/'' | ||
Line 88: | Line 88: | ||
''svn co svn+ssh://yourusername(see note below)@svn.mozilla.org/projects/mozilla.com/trunk/ mozilla.com/'' | ''svn co svn+ssh://yourusername(see note below)@svn.mozilla.org/projects/mozilla.com/trunk/ mozilla.com/'' | ||
Your username is usually your email address. In case you experience errors when using more than one | Your username is usually your email address. In case you experience errors when using more than one ‘@’ sign in the repository URL, make sure you encode the @ sign in the email address as %40. | ||
===commit (ci)=== | ===commit (ci)=== | ||
Line 96: | Line 94: | ||
'''Usage: svn commit [file [file...]]''' | '''Usage: svn commit [file [file...]]''' | ||
By checking out over ssh, you’ll be able to commit your changes. | |||
Once your code is checked out, you can commit your changes back to the repository. This command takes an optional list of files or directories to commit, if you only want to commit some changes. An example: | Once your code is checked out, you can commit your changes back to the repository. This command takes an optional list of files or directories to commit, if you only want to commit some changes. An example: | ||
Line 101: | Line 101: | ||
''svn commit'' | ''svn commit'' | ||
If | If you’d like to add a comment and commit all in one line, you can try this command: | ||
''svn commit -m "Commit message here"'' | ''svn commit -m "Commit message here"'' | ||
===diff=== | |||
([http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.diff.html documentation]) | |||
'''Usage: svn diff [file [file...]] > patch''' | |||
If you do not have an account, you can still make a patch to submit in a [[bugzilla:|bug]]. | |||
This command takes a list of files or directories. An example: | |||
''svn diff . > wholedir.patch'' | |||
===status=== | ===status=== | ||
Line 130: | Line 141: | ||
== Notes == | == Notes == | ||
This is a really brief overview, and if | This is a really brief overview, and if you’d like further reading, please check out the following: | ||
* [http://svnbook.red-bean.com/en/1.2/index.html The complete free | * [http://svnbook.red-bean.com/en/1.2/index.html The complete free O’reilly book] (filled with great examples) | ||
* [http://svnbook.red-bean.com/en/1.2/svn.forcvs.html A short appendix] from the book specifically for CVS users | * [http://svnbook.red-bean.com/en/1.2/svn.forcvs.html A short appendix] from the book specifically for CVS users | ||
* [http://svn.collab.net/repos/svn/trunk/doc/user/cvs-crossover-guide.html | Another great reference for CVS users] | * [http://svn.collab.net/repos/svn/trunk/doc/user/cvs-crossover-guide.html | Another great reference for CVS users] | ||
* [http://www.onlamp.com/pub/a/onlamp/2004/08/19/subversiontips.html ONLamp. | * [http://www.onlamp.com/pub/a/onlamp/2004/08/19/subversiontips.html ONLamp.com’s top tips] for CVS users | ||
As of April 2007, webdav is available over https. | As of April 2007, webdav is available over https. |
edits