With this CL, the patch that is sent to the code review site includes only changes from the nearest common ancestor of the local and the upstream branch.
A diagram:
/----B <- local branch
----A-----C <- upstream
Previously, the diff would be simply between C and B, whereas now it's between A and C, even if you update C.
This allows you to continously update origin/trunk without having to rebase/merge your local changes all the time, resulting in the need for less rebuilds.
Review URL: http://codereview.chromium.org/1583003
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@43113 0039d316-1c4b-4281-b951-d872f2087c98
TEST=verified it works in python 2.4
BUG=none
Review URL: http://codereview.chromium.org/1110006
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@42177 0039d316-1c4b-4281-b951-d872f2087c98
These are the same that the one in chromium's src/PRESUBMIT.py but slightly more
resilitent to exceptions.
Empirical studies have shown that exceptions in presubmit checks result in
disorientation and lack of willingness to commit.
TEST=OMG new unit tests!
Review URL: http://codereview.chromium.org/1119003
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@42102 0039d316-1c4b-4281-b951-d872f2087c98
Broken by the @branchname support
Review URL: http://codereview.chromium.org/907004
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@41585 0039d316-1c4b-4281-b951-d872f2087c98
This commit fixes that, though the --snapshot option doesn't work perfectly.
Review URL: http://codereview.chromium.org/900001
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@41351 0039d316-1c4b-4281-b951-d872f2087c98
This simplifies the unit tests and clarify what is what.
Ran pychecker on a few files.
Review URL: http://codereview.chromium.org/874002
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@41310 0039d316-1c4b-4281-b951-d872f2087c98
set to sync to the current revisions/hashes on disk
Add a --gclientfile=FILENAME option. If set, gclient loads FILENAME
rather than .gclient for configuration info.
Patch contributed by jneddo@nvidia.com
BUG=1658
TEST=Verify that --snapshot prints a valid configuration file
Verify that when --gclientfile is set the correct file is used
Verify that gclient sync --gclientfile sets the correct revisions
Review URL: http://codereview.chromium.org/672004
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@41078 0039d316-1c4b-4281-b951-d872f2087c98
It does remote connection and can get HTTP 502 when used over http.
Review URL: http://codereview.chromium.org/661280
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@40330 0039d316-1c4b-4281-b951-d872f2087c98
I broke this in my last change.
TBR=msb
Review URL: http://codereview.chromium.org/627004
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@39277 0039d316-1c4b-4281-b951-d872f2087c98
It would previously delete and recreate git-cl-repo if it
saw that the remote was different than expected. This looks
like it was added for the transition from the old SVN repo
to the new git one, but it also has the effect of losing
any local changes that have been made in the repo. :-(
Everyone should be updated by now, so print a helpful error
and exit instead.
Review URL: http://codereview.chromium.org/609002
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@39099 0039d316-1c4b-4281-b951-d872f2087c98
Moved tests/pymox to third_party/pymox
Moved upload.py to third_party/upload.py
Fixed tests so they can run standalone
Fixed the executable bit on some scripts
TEST=none
BUG=34376
Review URL: http://codereview.chromium.org/562031
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@37987 0039d316-1c4b-4281-b951-d872f2087c98
I'm doing this while trying to figure out the best way to make git-cl
auto-configure itself on first use, including automatic presubmit scripts hook
setup.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/559002
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@37709 0039d316-1c4b-4281-b951-d872f2087c98
in_directory was not being set to the correct cwd. This caused commands to
always run in the dir from which gclient was executed.
Review URL: http://codereview.chromium.org/554142
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@37697 0039d316-1c4b-4281-b951-d872f2087c98
git-svn rebase will always output 'Current branch <> is up-to-date' when the
branch is up-to-date, even if you pass the --quiet flag(s). This change
specifically squelches that message.
Review URL: http://codereview.chromium.org/555183
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@37696 0039d316-1c4b-4281-b951-d872f2087c98
We now return the stderr half of the tuple.
This required a clean up of any usage of CheckCall and GIT.Capture.
Patch contributed by Nasser Grainawi <nasser@codeaurora.org>
Review URL: http://codereview.chromium.org/551215
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@37650 0039d316-1c4b-4281-b951-d872f2087c98
It breaks the use case when a dev outside corp wants to send a job's email to someone else.
Review URL: http://codereview.chromium.org/558062
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@37644 0039d316-1c4b-4281-b951-d872f2087c98
trychange.py -R <review_url> is sufficient for try jobs when in a checkout directory.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/553166
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@37616 0039d316-1c4b-4281-b951-d872f2087c98
It's been replaced by drover a year ago.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/553145
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@37487 0039d316-1c4b-4281-b951-d872f2087c98
For example, r".*\.c" was triggering for foo.checksum.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/558026
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@37461 0039d316-1c4b-4281-b951-d872f2087c98