THIS PAGE IS DEPRECATED.
This page provides a quick reference for common development related commands.
Main status command: svn status
This command shows you the status of the repository in the current directory and all subdirectories. It does not check directories outside the current one. C:\chrome\src>svn status ? chrome\mypatch.diff M chrome\browser\navigation_controller.cc C chrome\browser\navigation_controller.h
Note that this does not show changelists. Use gcl opened or gcl changes to see those.
Key of common status codes: “?” this file is not added to the repository, “A” this file is being added, “M” this file is modified, “C” there is a conflict (see “if you get conflicts” below on fixing this).
Helper commands: gcl provides a few commands to only show parts of the subversion status:
Show modifications: svn diff
To update your checkout: gclient sync
If you get conflicts: Conflicts denoted by a “C” in the status list, and indicate that both you and somebody else has changed the same code. After you update the file and remove the conflict markers, run svn resolved remove the conflict flag. You won't be able to check in with the conflict flag set.
Unlike some version control systems such as Perforce, Subversion doesn't require you to do anything special to begin editing a file. Just edit it.
To add a new file to Subversion: svn add
To add a new file to the build: Find the .gyp file for the target you are modifying and add the new file into the sources list.
To revert a single file: svn revert
To recursively revert all files a directory: svn revert -R (you can use “.” for the current directory).
To revert every file in your checkout with extreme prejudice: gclient revert
To create or modify a changelist: gcl change
To list all changelists: gcl changes
This lists all files in all changes, even outside of the current directory and its subdirectories.
C:\chrome\src\chrome\browser>gcl changes --- Changelist mychange M chrome\browser\navigation_controller.cc
This does not show files not in any changelist. Use gcl opened to see those as well.
To see a diff of a changelist: gcl diff
To delete a changelist: gcl delete
This does not actually revert the files in the changelist, it leaves the files in their current state, just outside of any changelist.
Please see the contributing code page for full details.
To upload a changelist for review: gcl upload
This may prompt your for a username and password. Use a Google login (such as your Gmail address and password). Chromium team members should use their full “@chromium.org” address.
To see your open reviews: Go to http://codereview.chromium.org/ and log in. You will see you uploaded, unsubmitted patches as well as patches that others have requested you to review.
To request review: Go to the patch on your review page and select “Edit issue” on the left (you may need to click on “log in” to see these commands). Enter the email address of the reviewer, any additional message (this is optional, your changelist description will also be included in the email), and press “Update issue”.
To submit a changelist: If you don't have commit access, you should ask your reviewer to submit the patch for you. If you do have commit access: gcl commit
You can look at the documentation directly with: gcl help and python /path_to_depot_tools/depot_tools/release/upload.py --help (gcl will pass through all your arguments to upload.py)