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

Issue 8382030: depot_tools: Add git svn find-rev for safesync_url parsing (commonly LKGR link). (Closed)

Created:
9 years, 2 months ago by Dan Beam
Modified:
9 years ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, Dirk Pranke, M-A Ruel
Visibility:
Public.

Description

[depot_tools] Adding safesync_url for git and git-svn checkouts. R=maruel@chromium.org TEST=Configure a checkout using the NewGitWorkflow with a safesync_url and everything works (though possibly with a really long git svn fetch time). BUG=106015 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115011

Patch Set 1 : '' #

Total comments: 2

Patch Set 2 : review comments, still need to add test #

Total comments: 14

Patch Set 3 : '' #

Total comments: 24

Patch Set 4 : code review changes #

Total comments: 26

Patch Set 5 : yep, you guessed it - more code review changes! 😃 #

Patch Set 6 : updating local copy #

Patch Set 7 : adding git and git-svn integration tests #

Total comments: 10

Patch Set 8 : maruel's review comments on first round of tests #

Patch Set 9 : adding scm.SVN.IsValidRevision test #

Patch Set 10 : adding SVN version of GetUsableRev test + logic fix #

Patch Set 11 : adding GetUsableRev tests for git/git-svn #

Patch Set 12 : changing more occurrences of SVN to Svn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -22 lines) Patch
M gclient.py View 1 2 3 4 5 6 1 chunk +9 lines, -2 lines 0 comments Download
M gclient_scm.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +36 lines, -0 lines 0 comments Download
M scm.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +40 lines, -0 lines 0 comments Download
M tests/gclient_scm_test.py View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +154 lines, -8 lines 0 comments Download
M tests/scm_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +126 lines, -12 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
Dan Beam
9 years, 2 months ago (2011-10-25 08:19:01 UTC) #1
Dan Beam
NOTE: pylint passed but presubmit unit tests didn't. DOUBLENOTE: I suck at Python and this ...
9 years, 2 months ago (2011-10-25 08:26:36 UTC) #2
M-A Ruel
On 2011/10/25 08:26:36, Dan Beam wrote: > NOTE: pylint passed but presubmit unit tests didn't. ...
9 years, 2 months ago (2011-10-25 13:10:58 UTC) #3
M-A Ruel
http://codereview.chromium.org/8382030/diff/2001/gclient.py File gclient.py (right): http://codereview.chromium.org/8382030/diff/2001/gclient.py#newcode928 gclient.py:928: svn_rev = scm.Sha1FromSvnRevision(rev) What happens when upstream is git ...
9 years, 2 months ago (2011-10-25 13:11:14 UTC) #4
Dan Beam
On 2011/10/25 13:10:58, Marc-Antoine Ruel wrote: > On 2011/10/25 08:26:36, Dan Beam wrote: > > ...
9 years, 2 months ago (2011-10-25 23:02:45 UTC) #5
Dan Beam
On 2011/10/25 13:11:14, Marc-Antoine Ruel wrote: > http://codereview.chromium.org/8382030/diff/2001/gclient.py > File gclient.py (right): > > http://codereview.chromium.org/8382030/diff/2001/gclient.py#newcode928 ...
9 years, 2 months ago (2011-10-25 23:06:54 UTC) #6
M-A Ruel
On 2011/10/25 23:06:54, Dan Beam wrote: > I could probably check for this output and ...
9 years, 1 month ago (2011-10-26 19:49:16 UTC) #7
Dan Beam
9 years, 1 month ago (2011-10-31 11:19:02 UTC) #8
M-A Ruel
http://codereview.chromium.org/8382030/diff/14003/gclient_scm.py File gclient_scm.py (right): http://codereview.chromium.org/8382030/diff/14003/gclient_scm.py#newcode480 gclient_scm.py:480: # If this doesn't look like a Subversion revision ...
9 years, 1 month ago (2011-10-31 13:46:51 UTC) #9
Dan Beam
Other nits should be pretty straight forward (and should be fixed as soon as I ...
9 years, 1 month ago (2011-10-31 18:32:28 UTC) #10
M-A Ruel
http://codereview.chromium.org/8382030/diff/14003/scm.py File scm.py (right): http://codereview.chromium.org/8382030/diff/14003/scm.py#newcode393 scm.py:393: GIT.Capture(['svn', 'rebase', '--local'], cwd=cwd) On 2011/10/31 18:32:28, Dan Beam ...
9 years, 1 month ago (2011-10-31 19:17:50 UTC) #11
Dan Beam
9 years, 1 month ago (2011-11-06 07:31:18 UTC) #12
Dan Beam
http://codereview.chromium.org/8382030/diff/14003/gclient_scm.py File gclient_scm.py (right): http://codereview.chromium.org/8382030/diff/14003/gclient_scm.py#newcode480 gclient_scm.py:480: # If this doesn't look like a Subversion revision ...
9 years, 1 month ago (2011-11-06 07:34:08 UTC) #13
Dan Beam
maurel: I still need to add tests. I'll look at how the other ones work, ...
9 years, 1 month ago (2011-11-07 19:02:28 UTC) #14
M-A Ruel
On 2011/11/07 19:02:28, Dan Beam wrote: > maurel: I still need to add tests. I'll ...
9 years, 1 month ago (2011-11-08 14:29:20 UTC) #15
Dan Beam
Still haven't added tests nor really tried this much with SVN. Will do soon. I'm ...
9 years, 1 month ago (2011-11-09 10:31:15 UTC) #16
M-A Ruel
Minor nits. http://codereview.chromium.org/8382030/diff/28001/gclient_scm.py File gclient_scm.py (right): http://codereview.chromium.org/8382030/diff/28001/gclient_scm.py#newcode501 gclient_scm.py:501: help_url = ''.join(['http://code.google.com/p/chromium/wiki/UsingNewGit', Replace lines 498-506 with: ...
9 years, 1 month ago (2011-11-09 14:16:08 UTC) #17
Dan Beam
I'll do the other stuff tonight (been only really doing this from home), just wanted ...
9 years, 1 month ago (2011-11-09 19:21:59 UTC) #18
M-A Ruel
http://codereview.chromium.org/8382030/diff/28001/gclient.py File gclient.py (right): http://codereview.chromium.org/8382030/diff/28001/gclient.py#newcode928 gclient.py:928: cwd=scm.checkout_path, url=scm.url, rev=rev, Why pass scm.checkout_path and scm.url when ...
9 years, 1 month ago (2011-11-09 19:25:51 UTC) #19
Dan Beam
http://codereview.chromium.org/8382030/diff/28001/gclient.py File gclient.py (right): http://codereview.chromium.org/8382030/diff/28001/gclient.py#newcode928 gclient.py:928: cwd=scm.checkout_path, url=scm.url, rev=rev, On 2011/11/09 19:25:51, Marc-Antoine Ruel wrote: ...
9 years, 1 month ago (2011-11-09 19:36:52 UTC) #20
Dan Beam
http://codereview.chromium.org/8382030/diff/28001/scm.py File scm.py (right): http://codereview.chromium.org/8382030/diff/28001/scm.py#newcode409 scm.py:409: def IsValidRevision(cwd, url, rev): On 2011/11/09 19:25:51, Marc-Antoine Ruel ...
9 years, 1 month ago (2011-11-09 19:37:22 UTC) #21
M-A Ruel
http://codereview.chromium.org/8382030/diff/28001/gclient.py File gclient.py (right): http://codereview.chromium.org/8382030/diff/28001/gclient.py#newcode928 gclient.py:928: cwd=scm.checkout_path, url=scm.url, rev=rev, On 2011/11/09 19:36:52, Dan Beam wrote: ...
9 years, 1 month ago (2011-11-09 19:38:50 UTC) #22
Dan Beam
http://codereview.chromium.org/8382030/diff/28001/gclient.py File gclient.py (right): http://codereview.chromium.org/8382030/diff/28001/gclient.py#newcode928 gclient.py:928: cwd=scm.checkout_path, url=scm.url, rev=rev, On 2011/11/09 19:38:50, Marc-Antoine Ruel wrote: ...
9 years, 1 month ago (2011-11-10 10:29:15 UTC) #23
M-A Ruel
Code looks good.
9 years, 1 month ago (2011-11-10 14:51:36 UTC) #24
Dan Beam
On 2011/11/10 14:51:36, Marc-Antoine Ruel wrote: > Code looks good. Cool. On to the tests.
9 years, 1 month ago (2011-11-10 19:05:35 UTC) #25
Dan Beam
Hey Marc-Antoine, I added some of the tests required (git, git-svn). Still need to add ...
9 years ago (2011-12-16 07:02:17 UTC) #26
M-A Ruel
lgtm http://codereview.chromium.org/8382030/diff/39001/tests/gclient_scm_test.py File tests/gclient_scm_test.py (right): http://codereview.chromium.org/8382030/diff/39001/tests/gclient_scm_test.py#newcode110 tests/gclient_scm_test.py:110: 'url' keep a coma there so it's easier ...
9 years ago (2011-12-16 15:03:31 UTC) #27
M-A Ruel
Actually, one nit, I would prefer a proper mocked test for GetUsableRev(). Using auto_stub, not ...
9 years ago (2011-12-16 15:44:20 UTC) #28
Dan Beam
Cool, on to gclient_scm.GetUsableRev with auto_stub and scm.SVN.IsValidRevision, :D! http://codereview.chromium.org/8382030/diff/39001/tests/gclient_scm_test.py File tests/gclient_scm_test.py (right): http://codereview.chromium.org/8382030/diff/39001/tests/gclient_scm_test.py#newcode110 tests/gclient_scm_test.py:110: ...
9 years ago (2011-12-16 18:05:51 UTC) #29
Dan Beam
maurel: Adding the last round of tests (supposedly), please take another look.
9 years ago (2011-12-19 19:19:41 UTC) #30
M-A Ruel
lgtm, thanks!
9 years ago (2011-12-19 19:38:02 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbeam@chromium.org/8382030/54002
9 years ago (2011-12-19 19:41:49 UTC) #32
commit-bot: I haz the power
9 years ago (2011-12-19 19:49:22 UTC) #33
Change committed as 115011

Powered by Google App Engine
This is Rietveld 408576698