Changes between Version 4 and Version 5 of CaffeinatedSubversion
- Timestamp:
- 01/19/11 07:47:11 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CaffeinatedSubversion
v4 v5 11 11 == Initial checkout == 12 12 13 Identify a location in your filesystem for your working copy of the source, and change to that directory. Then, checkout the source with the following command:14 `svn co svn+ssh://svn.mit.edu/athena/trunk athena`. 13 Identify a location in your filesystem for your working copy of the source, and change to that directory. Then, checkout the source with `svn co` (short for `svn checkout`), as follows: 14 {{{svn co svn+ssh://svn.mit.edu/athena/trunk athena}}} 15 15 16 This will create a directory called `athena` in the current directory, with the Athena source tree inside that directory. That directory is called a *working copy*.16 This will create a directory called `athena` in the current directory, with the Athena source tree inside that directory. That directory is called a '''working copy''' or '''checkout'''. 17 17 18 18 == Getting an update from the server == 19 19 20 Before making changes, you'll want to ensure you have the latest copy of the code. `svn up date`will get you the latest copy of the code.20 Before making changes, you'll want to ensure you have the latest copy of the code. `svn up` (short for `svn update`) will get you the latest copy of the code. 21 21 22 22 {{{ … … 43 43 To remove files previously added, use `svn del`: 44 44 45 `svn del lfoo.pl`[[BR]]45 `svn del foo.pl`[[BR]] 46 46 `svn del *.c`[[BR]] 47 47 `svn del subdir`[[BR]] … … 49 49 == Reviewing your changes == 50 50 51 To view information about what files have been changed, use `svn st atus`. By default, it will display status on the current location in the repository, or you can specify a directory or file, or with no arguments51 To view information about what files have been changed, use `svn st`, short for `svn status`. By default, it will display status on the current location in the repository; you can also specify a directory or file. 52 52 53 *Tip:* Make sure you're in the right directory when you run this command. For example, if you're working on package `foo`, but you're actually in `foo/bar`, it might not give an accurate listing of your changes to be committed. 53 '''Tip:''' Make sure you're in the right directory when you run this command. For example, if you're working on package `foo`, but you're actually in `foo/debian`, it will not display all your changes to the package 54 54 55 55 Example: 56 56 {{{ 57 joeuser@athena:~$ svn st atus57 joeuser@athena:~$ svn st 58 58 A foo.c 59 59 M bar.c … … 76 76 == Committing your Changes == 77 77 78 Before committing, make sure your working copy is up to date with `svn up date`.78 Before committing, make sure your working copy is up to date with `svn up`, and make sure you are in the right directory. Just like with `svn st` or `svn diff`, Subversion will only commit changes in the current working directory and below. 79 79 80 You commit your changes with `svn commit` . You can specify files to commit, or by default it will commit everything in the current working directory and subdirectories. It's best to run `svn status` ahead of time to verify what will be changed. You'll also want to specify a commit message with "-m". Commit messages should be descriptive, but concise. Don't mention what files have changed, the commit log will tell other users that. Instead, say what you actually did. Example:80 You commit your changes with `svn commit`, or for short, `svn ci` (for "checkin"). You can specify files to commit, or by default it will commit everything in the current working directory and subdirectories. It's best to run `svn status` ahead of time to verify what will be changed. You'll also want to specify a commit message with "-m". Commit messages should be descriptive, but concise. Don't mention what files have changed, the commit log will tell other users that. Instead, say what you actually did. Example: 81 81 82 82 `svn commit -m 'Fixed a string-handling bug in bar.c'` 83 83 84 If you are in the root directory of a package, and have added a new Changelog entry to `debian/changelog`, you can leave the commit message blank, and the Subversion server will use the contents of the new Changelog entry as thecommit message:84 If you are in the root directory of a package, and have added a new changelog entry to `debian/changelog`, you should leave the commit message blank. The Athena repository is configured such that the added changelog entry will become your commit message: 85 85 86 86 `svn commit -m ''`[[BR]]