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

Issue 8771042: Enforces using cwd in all svn calls. (Closed)

Created:
9 years ago by M-A Ruel
Modified:
9 years ago
Reviewers:
Dirk Pranke, achuithb, Nico
CC:
chromium-reviews, Dirk Pranke
Visibility:
Public.

Description

Enforces using cwd in all svn calls. That helps weed out some issues faces with svn plus helped me figure out some misuses. Most of the commands have been implicitly depending on os.getcwd(). This change makes it always consistent and clear when dependence on the current directory is needed. Remove default arguments to scm.SVN.GenerateDiff and a few other calls to be sure the refactoring was done right. R=dpranke@chromium.org BUG= TEST=make sure most commands aren't broke Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114262

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -238 lines) Patch
M gcl.py View 1 8 chunks +19 lines, -14 lines 0 comments Download
M gclient_scm.py View 1 5 chunks +12 lines, -8 lines 0 comments Download
M presubmit_support.py View 1 6 chunks +15 lines, -15 lines 0 comments Download
M scm.py View 1 20 chunks +67 lines, -51 lines 0 comments Download
M testing_support/fake_repos.py View 1 chunk +1 line, -1 line 0 comments Download
M tests/gcl_unittest.py View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/gclient_scm_test.py View 1 17 chunks +37 lines, -28 lines 0 comments Download
M tests/presubmit_unittest.py View 1 18 chunks +150 lines, -100 lines 0 comments Download
M tests/scm_unittest.py View 1 8 chunks +18 lines, -13 lines 0 comments Download
M trychange.py View 2 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
M-A Ruel
The patch is slightly heavier that I desired but it degenerated quite quickly. Basically, it ...
9 years ago (2011-12-02 19:07:26 UTC) #1
M-A Ruel
On 2011/12/02 19:07:26, Marc-Antoine Ruel wrote: > The patch is slightly heavier that I desired ...
9 years ago (2011-12-02 19:08:13 UTC) #2
Dirk Pranke
http://codereview.chromium.org/8771042/diff/1/gcl.py File gcl.py (right): http://codereview.chromium.org/8771042/diff/1/gcl.py#newcode739 gcl.py:739: return SVN.GenerateDiff(files, GetRepositoryRoot(), False, None) Nit: can you pass ...
9 years ago (2011-12-03 03:20:16 UTC) #3
M-A Ruel
http://codereview.chromium.org/8771042/diff/1/gcl.py File gcl.py (right): http://codereview.chromium.org/8771042/diff/1/gcl.py#newcode739 gcl.py:739: return SVN.GenerateDiff(files, GetRepositoryRoot(), False, None) On 2011/12/03 03:20:16, Dirk ...
9 years ago (2011-12-05 15:23:49 UTC) #4
M-A Ruel
ping?
9 years ago (2011-12-12 20:39:54 UTC) #5
Dirk Pranke
lgtm. sorry, this fell through the cracks for me.
9 years ago (2011-12-13 02:56:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/8771042/7001
9 years ago (2011-12-13 20:28:12 UTC) #7
commit-bot: I haz the power
Change committed as 114262
9 years ago (2011-12-13 20:36:13 UTC) #8
Nico
This broke `gcl change` for me. Is sent you an email with details, maruel.
9 years ago (2011-12-13 22:27:40 UTC) #9
achuithb
On 2011/12/13 22:27:40, Nico wrote: > This broke `gcl change` for me. Is sent you ...
9 years ago (2011-12-14 11:22:47 UTC) #10
achuithb
gcl change no longer recognizes that files are in other changelists. I cannot add files ...
9 years ago (2011-12-14 11:32:51 UTC) #11
M-A Ruel
On 2011/12/14 11:32:51, achuith.bhandarkar wrote: > gcl change no longer recognizes that files are in ...
9 years ago (2011-12-14 13:37:46 UTC) #12
Nico
On Wed, Dec 14, 2011 at 5:37 AM, <maruel@chromium.org> wrote: > It was fixed a ...
9 years ago (2011-12-14 18:08:37 UTC) #13
achuithb
On 2011/12/14 18:08:37, Nico wrote: > On Wed, Dec 14, 2011 at 5:37 AM, <mailto:maruel@chromium.org> ...
9 years ago (2011-12-15 02:13:33 UTC) #14
achuithb
9 years ago (2011-12-15 02:13:52 UTC) #15
M-A Ruel
cd to the root directory in the meantime. Le 14 décembre 2011 21:13, <achuith@chromium.org> a ...
9 years ago (2011-12-15 02:18:14 UTC) #16
M-A Ruel
Or stop using gcl, seriously. Le 14 décembre 2011 21:17, Marc-Antoine Ruel <maruel@chromium.org> a écrit ...
9 years ago (2011-12-15 02:18:23 UTC) #17
achuithb
On 2011/12/15 02:18:23, Marc-Antoine Ruel wrote: > Or stop using gcl, seriously. > > Le ...
9 years ago (2011-12-15 02:21:36 UTC) #18
M-A Ruel
9 years ago (2011-12-15 02:34:49 UTC) #19
Yep. :)

But I'll fix the bug, I just got a P0 to fix first.

Le 14 décembre 2011 21:21, <achuith@chromium.org> a écrit :

> On 2011/12/15 02:18:23, Marc-Antoine Ruel wrote:
>
>> Or stop using gcl, seriously.
>>
>
>  Le 14 décembre 2011 21:17, Marc-Antoine Ruel <mailto:maruel@chromium.org>
>> a
>>
> écrit :
>
>  > cd to the root directory in the meantime.
>> >
>> >
>> > Le 14 décembre 2011 21:13, <mailto:achuith@chromium.org> a écrit :
>> >
>> >>
>>
>
> http://codereview.chromium.****org/8771042/%3Chttp://coderevi**
> ew.chromium.org/8771042/ <http://codereview.chromium.org/8771042/>>
>
>> >>
>> >
>> >
>>
>
> What should I be using? git?
>
>
http://codereview.chromium.**org/8771042/<http://codereview.chromium.org/8771...
>

Powered by Google App Engine
This is Rietveld 408576698