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

Issue 481006: Allow git-try to try rietveld changes directly. (Closed)

Created:
11 years ago by Mohamed Mansour
Modified:
9 years, 6 months ago
Reviewers:
Nico, M-A Ruel, Evan Martin
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Allow git-try to try rietveld changes directly. Some external contributors need their CL's try'd quickly, but currently its not easy unless we patch locally. This will allow you to submit the rietveld issue number and will do the rest automatically. As well, renable the dry_run option. It was removed. BUG=None TEST=git try --issue 12345 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35881

Patch Set 1 #

Total comments: 7

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : Rebase and use the new rietveld API #

Patch Set 4 : add a member change to tests #

Total comments: 5

Patch Set 5 : Fix comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -7 lines) Patch
M git-try View 1 2 3 4 2 chunks +9 lines, -0 lines 1 comment Download
M tests/trychange_unittest.py View 1 chunk +1 line, -1 line 0 comments Download
M trychange.py View 3 4 3 chunks +25 lines, -6 lines 2 comments Download

Messages

Total messages: 20 (0 generated)
Mohamed Mansour
11 years ago (2009-12-09 19:55:53 UTC) #1
M-A Ruel
http://codereview.chromium.org/481006/diff/1/2 File git-try (right): http://codereview.chromium.org/481006/diff/1/2#newcode229 git-try:229: file_list=None This will make the presubmit scripts fail but ...
11 years ago (2009-12-09 20:27:20 UTC) #2
Evan Martin
http://codereview.chromium.org/481006/diff/1/2 File git-try (right): http://codereview.chromium.org/481006/diff/1/2#newcode210 git-try:210: if (not options.diff): parens not necessary http://codereview.chromium.org/481006/diff/1/2#newcode229 git-try:229: file_list=None ...
11 years ago (2009-12-09 20:30:52 UTC) #3
Mohamed Mansour
Please re-review guys, now, we can finally do without patching it locally: git try --issue=1234 ...
11 years ago (2009-12-09 20:52:31 UTC) #4
Mohamed Mansour
I tested this, and it works with svn styled diffs, and git styled diffs. I ...
11 years ago (2009-12-09 23:44:18 UTC) #5
M-A Ruel
http://codereview.chromium.org/481006/diff/9/2008 File git-try (right): http://codereview.chromium.org/481006/diff/9/2008#newcode185 git-try:185: fetch = "curl --silent %s" % url Na, use ...
11 years ago (2009-12-10 01:21:07 UTC) #6
Mohamed Mansour
Thanks maruel, please take another look and criticize. This is like my second patch working ...
11 years ago (2009-12-10 03:39:30 UTC) #7
M-A Ruel
http://codereview.chromium.org/481006/diff/9001/9002 File git-try (right): http://codereview.chromium.org/481006/diff/9001/9002#newcode93 git-try:93: output = [] remove this line http://codereview.chromium.org/481006/diff/9001/9002#newcode99 git-try:99: new_cwd ...
11 years ago (2009-12-10 15:30:28 UTC) #8
Mohamed Mansour
http://codereview.chromium.org/481006/diff/9001/9002 File git-try (right): http://codereview.chromium.org/481006/diff/9001/9002#newcode93 git-try:93: output = [] On 2009/12/10 15:30:28, Marc-Antoine Ruel wrote: ...
11 years ago (2009-12-10 17:11:46 UTC) #9
Mohamed Mansour
Since we are in the talks with Guide Van Rossum by implementing an API for ...
11 years ago (2009-12-12 05:39:09 UTC) #10
Mohamed Mansour
I should close this patch right? Since git-try has been completely redone since trychange is ...
10 years, 11 months ago (2010-01-07 23:20:29 UTC) #11
M-A Ruel
No, don't drop the patch, it's useful but a part will need to be ported ...
10 years, 11 months ago (2010-01-07 23:52:35 UTC) #12
Mohamed Mansour
Alright I updated this. I am having a problem that I cannot access tryserver. Using ...
10 years, 11 months ago (2010-01-09 23:45:28 UTC) #13
M-A Ruel
In short, lgtm with a few changes. http://codereview.chromium.org/481006/diff/16005/15007 File git-try (right): http://codereview.chromium.org/481006/diff/16005/15007#newcode33 git-try:33: ['config', 'rietveld.server'], ...
10 years, 11 months ago (2010-01-10 00:32:34 UTC) #14
Nico
This breaks `git try` for me. Here's an attempted explanation: http://codereview.chromium.org/481006/diff/15011/15012 File git-try (right): http://codereview.chromium.org/481006/diff/15011/15012#newcode39 ...
10 years, 11 months ago (2010-01-10 04:55:49 UTC) #15
Mohamed Mansour
I will try to figure out which case this caused that, since git-try should never ...
10 years, 11 months ago (2010-01-10 05:00:32 UTC) #16
Nico
http://codereview.chromium.org/481006/diff/15011/15013 File trychange.py (right): http://codereview.chromium.org/481006/diff/15011/15013#newcode582 trychange.py:582: diff = GetMungedDiff('', urllib.urlopen(diff_url).readlines()) wait, do i read this ...
10 years, 11 months ago (2010-01-10 05:02:44 UTC) #17
Nico
...and finally, it looks like the diffs generated in the new branch don't work with ...
10 years, 11 months ago (2010-01-10 05:05:33 UTC) #18
Nico
Looks like the core problem is that the new branch should only be executed if ...
10 years, 11 months ago (2010-01-10 05:17:52 UTC) #19
Mohamed Mansour
10 years, 11 months ago (2010-01-10 05:45:58 UTC) #20
Thanks thakis, the problem should be committed and resolved. Thanks for your
help!

-Mohamed Mansour


On Sun, Jan 10, 2010 at 12:17 AM, <thakis@chromium.org> wrote:

> Looks like the core problem is that the new branch should only be executed
> if
> the user passed --issue explicitly to git-try, but --issue is also passed
> from
> git-try to trychange if rietveldpatchset is set for a branch, i.e. it has
> been
> uploaded at least once, which is wrong.
>
>
> http://codereview.chromium.org/481006
>

Powered by Google App Engine
This is Rietveld 408576698