You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
gavinp@google.com 3fda4ccee3 Add explicit file rename/cp information to svn rietveld uploads
Right now if you svn cp or svn mv before uploading to rietveld,
there's no description in the patch at all of what was done; so you
get a diff, but it's for who knows what revision of what prior file
to some current version.

For code reviews this kinda works (you ask the guy what it was), but for
trying to apply patches (ala git patch) this fails badly.  This patch
tries to add some metadata to the start of a rietveld patch that
describes these changes: both to a human (who can read them)
and to a potential clever future git-cl (which I'll do next).

The metadata looks like this after checking out a test repo, and
svn cp -r 1 foo nitz; svn cp bar quux; echo be good>>quux

  ### BEGIN SVN COPY METADATA
  #$ svn cp -r 1 foo nitz ### WARNING: note non-trunk copy
  #$ cp bar quux
  ### END SVN COPY METADATA
  Index: nitz
  Index: quux
  ===================================================================
  --- quux	(revision 0)
  +++ quux	(working copy)
  @@ -1,2 +1,3 @@
   hi mom
   hi sister
  +be good

I did a test, and this looks like it works in svn 1.4.4 as well.

BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2824035

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@51121 0039d316-1c4b-4281-b951-d872f2087c98
15 years ago
bootstrap Set bootstrap Python version to 2.6 15 years ago
tests Move DEPS parsing into a single function. This is a move towards having each DEPS entry being a Dependency instance. 15 years ago
third_party Update upload.py to r529 15 years ago
zsh-goodies First take on zsh-completion functionality for gclient. 15 years ago
.gitignore Add basic gclient smoke tests. 15 years ago
LICENSE Create the Next Generation of depot_tools. Eh. 16 years ago
PRESUBMIT.py Add a warning when git-cl-upload-hook is modified to update git-cl accordingly. 15 years ago
README depot_tools: Update README file to point to bootstrap/gclient.sh/.bat instead of 15 years ago
README.gclient This adds a feature to gclient to allow the (optional) specification of the 16 years ago
WATCHLISTS Add watchlists to 'gcl upload' 16 years ago
breakpad.py Use https for stack trace upload. 15 years ago
chrome-update-create-task.bat Fix exit 1 to goto :EOF. 16 years ago
chrome-update.bat Automatic searching for vcvars.bat and report an error if the file cannot be found. 16 years ago
chrome-update.py Check if the given root path argument points to a valid directory. Display an error message and quit if it is not. 16 years ago
codereview.settings Add codereview.settings to depot_tools. 15 years ago
cpplint.bat Add setlocal so {cpplin,gcl}.bat don't repeatedly add \depot_tools to %PATH%. 16 years ago
cpplint.py - Add a presubmit check that lints C++ files (will submit CLs that 16 years ago
create-chromium-git-src Make svn password prompt available during setup. 16 years ago
drover Make drover works in cygwin. 16 years ago
drover.bat Fix drover.py style. 16 years ago
drover.py Add pylintrc and fix style for many scripts. 15 years ago
gcl Mark depot_tools scripts as bash scripts. 16 years ago
gcl.bat Add setlocal so {cpplin,gcl}.bat don't repeatedly add \depot_tools to %PATH%. 16 years ago
gcl.py Allow gcl help to be run from anywhere 15 years ago
gclient Fix for git-svn rebase bug 15 years ago
gclient.bat Fix using depot_tools from a git checkout on Windows. 15 years ago
gclient.py Add more glue code necessary for getting the DEPS dependencies as Dependency objects. 15 years ago
gclient_scm.py Make each solution dictionary an object. 15 years ago
gclient_utils.py Incremental changes towards more efficient refactoring of gclient.py 15 years ago
git-cl depot_tools: Make git-cl wrapper not fail when repo is missing. 15 years ago
git-cl-upload-hook Fixes based on maruel's comments. 16 years ago
git-gs depot_tools: Print line numbers in search results of git-gs 15 years ago
git-try More examples at the end of trychange.py help and move the -R flag to the right group 15 years ago
git_cl_hooks.py Fix git cl code to get the changelist description without using gcl. 15 years ago
hammer Updating hammer script based on review suggestions. 16 years ago
hammer.bat Set some batch files as executable. 16 years ago
presubmit_canned_checks.py Makefiles will always contain tabs so make the notab check filter them out. 15 years ago
presubmit_support.py Look for PRESUBMIT.py beyond root if inherit-review-settings-ok is present. 15 years ago
profile.xml Create the Next Generation of depot_tools. Eh. 16 years ago
pylintrc Add pylintrc and fix style for many scripts. 15 years ago
scm.py Add explicit file rename/cp information to svn rietveld uploads 15 years ago
trychange.py Add file name and line number to trychange's log output. 15 years ago
watchlists.py Review URL: http://codereview.chromium.org/132022 16 years ago
weekly Adding weekly tool to help with weekly snippets 15 years ago
wtf Adding weekly tool to help with weekly snippets 15 years ago

README

This package contains tools for working with Chromium development.

The "gclient" wrapper knows how to keep this repository updated to
the latest versions of these tools as found at:

    http://src.chromium.org/svn/trunk/tools/depot_tools

This package contains:

  chrome-update-create-task.bat
    Creates a scheduled task to do an automatic local chromium build every day.

  cpplint.py
    A copy of our linting tool which enforces Google style. Fetched from
    http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py

  gcl
    A tool for uploading and managing code reviews on the Chromium
    project, using the Rietveld code review tool.  More info at:
    http://code.google.com/p/rietveld/

  gclient
    A script for managing a workspace with modular dependencies that
    are each checked out independently from different repositories.
    More info at:
    http://code.google.com/p/gclient/

  hammer
    A wrapper script for building Chromium with the SCons software
    construction tool.  More info at:
    http://www.scons.org/

Note: svn and python will be installed automatically if not accessible (on
Windows only).

To update this distribution manually, run bootstrap\gclient.bat on Windows,
or bootstrap/gclient.sh on Linux or Mac.

To disable automatic updating, set the environment variable DEPOT_TOOLS_UPDATE=0