Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Issue 10263004: Handle updating depot_tools repos that are git cloned. (Closed)

Created:
8 years, 7 months ago by cmp
Modified:
8 years, 7 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, Dirk Pranke
Visibility:
Public.

Description

Handle updating depot_tools repos that are git cloned. Until recently, no proper Git clone of depot_tools existed. All Git clones were set up locally via git svn clone. The way repos of that type are updated is via 'git svn rebase'. Now, a supported Git clone of depot_tools exists. The update process for repos of this type is via 'git fetch' and 'git rebase'. Modify the update_depot_tools* scripts so they can update depot_tools for git cloned or git svn cloned methods. This also means that git svn is no longer required, so move that test after we check for git cloned repos. R=maruel@chromium.org TEST=Linux + git clone: on Linux, git clone https://git.chromium.org/chromium/tools/depot_tools.git. Apply and commit this patch locally. Note commit hash of HEAD. Run 'git reset --hard "HEAD^^^"'. Run 'git cherry-pick HASH_OF_UPDATE_CHANGE'. Run './update_depot_tools'. Verify depot_tools is updated to latest available revision + this change. TEST=Linux + git svn clone: on Linux, git svn clone svn://svn.chromium.org/chrome/trunk/tools/depot_tools. Apply and commit this patch locally. Note commit hash of HEAD. Run 'git reset --hard "HEAD^^^"'. Run 'git cherry-pick HASH_OF_UPDATE_CHANGE'. Run './update_depot_tools'. Verify depot_tools is updated to latest available revision + this change. TEST=Windows command prompt + git clone: on Windows command prompt, run Linux+git clone test, except use update_depot_tools.bat. Verify depot_tools is updated to latest available revision + this change. TEST=Windows command prompt + git svn clone: on Windows command prompt, run Linux+git svn clone test, except use update_depot_tools.bat. Verify depot_tools is updated to latest available revision + this change. TEST=Windows cygwin + git clone: on Windows command prompt, run Linux+git clone test. Verify depot_tools is updated to latest available revision + this change. TEST=Windows cygwin + git svn clone: on Windows command prompt, run Linux+git svn clone test. Verify depot_tools is updated to latest available revision + this change. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=134732

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix errorlevel check on windows #

Patch Set 3 : comment #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : redirect output to null #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -6 lines) Patch
M update_depot_tools View 1 2 3 4 2 chunks +21 lines, -6 lines 0 comments Download
M update_depot_tools.bat View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
cmp
So far I verified the Linux tests and the first Windows command prompt test. The ...
8 years, 7 months ago (2012-04-29 00:12:22 UTC) #1
cmp
expanded the Windows tests described in changelog (a local changelog edit I didn't make in ...
8 years, 7 months ago (2012-04-29 00:19:41 UTC) #2
cmp
fixed the cygwin tests to be exactly like the linux tests. that is, they should ...
8 years, 7 months ago (2012-04-29 00:20:11 UTC) #3
cmp
the following tests are verified: - Linux + git clone - Linux + git svn ...
8 years, 7 months ago (2012-04-29 00:23:58 UTC) #4
M-A Ruel
https://chromiumcodereview.appspot.com/10263004/diff/1/update_depot_tools.bat File update_depot_tools.bat (right): https://chromiumcodereview.appspot.com/10263004/diff/1/update_depot_tools.bat#newcode34 update_depot_tools.bat:34: call git config remote.origin.fetch > NUL I prefer to ...
8 years, 7 months ago (2012-04-29 00:49:08 UTC) #5
M-A Ruel
https://chromiumcodereview.appspot.com/10263004/diff/1/update_depot_tools File update_depot_tools (right): https://chromiumcodereview.appspot.com/10263004/diff/1/update_depot_tools#newcode77 update_depot_tools:77: if is_git_clone_repo the rest of the file uses the ...
8 years, 7 months ago (2012-04-29 00:55:58 UTC) #6
cmp
https://chromiumcodereview.appspot.com/10263004/diff/1/update_depot_tools.bat File update_depot_tools.bat (right): https://chromiumcodereview.appspot.com/10263004/diff/1/update_depot_tools.bat#newcode34 update_depot_tools.bat:34: call git config remote.origin.fetch > NUL I asked M-A ...
8 years, 7 months ago (2012-04-29 00:57:03 UTC) #7
cmp
Patch updated, PTAL. The Windows+command prompt+git svn clone case was failing for an unknown reason. ...
8 years, 7 months ago (2012-04-30 03:16:16 UTC) #8
cmp
On 2012/04/29 00:23:58, cmp wrote: > the following tests are verified: > - Linux + ...
8 years, 7 months ago (2012-04-30 03:25:45 UTC) #9
M-A Ruel
lgtm https://chromiumcodereview.appspot.com/10263004/diff/2002/update_depot_tools File update_depot_tools (right): https://chromiumcodereview.appspot.com/10263004/diff/2002/update_depot_tools#newcode66 update_depot_tools:66: function is_git_clone_repo { Why isn't this sufficient? My ...
8 years, 7 months ago (2012-04-30 14:17:34 UTC) #10
cmp
ptal https://chromiumcodereview.appspot.com/10263004/diff/2002/update_depot_tools File update_depot_tools (right): https://chromiumcodereview.appspot.com/10263004/diff/2002/update_depot_tools#newcode66 update_depot_tools:66: function is_git_clone_repo { That's a great suggestion. I ...
8 years, 7 months ago (2012-04-30 18:12:37 UTC) #11
M-A Ruel
lgtm
8 years, 7 months ago (2012-04-30 18:24:21 UTC) #12
cmp
ptal, i added redirecting output to null to reduce noise
8 years, 7 months ago (2012-05-01 17:21:36 UTC) #13
M-A Ruel
lgtm
8 years, 7 months ago (2012-05-01 17:28:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmp@chromium.org/10263004/13001
8 years, 7 months ago (2012-05-01 17:54:50 UTC) #15
commit-bot: I haz the power
Can't apply patch for file depot_tools/update_depot_tools.bat. While running patch -p1 --forward --force; patching file depot_tools/update_depot_tools.bat ...
8 years, 7 months ago (2012-05-01 17:55:00 UTC) #16
M-A Ruel
8 years, 7 months ago (2012-05-01 17:58:52 UTC) #17
On 2012/05/01 17:55:00, I haz the power (commit-bot) wrote:
> Can't apply patch for file depot_tools/update_depot_tools.bat.

Just commit manually.

Powered by Google App Engine
This is Rietveld 408576698