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

Issue 1702012: Hack to work around bad cygwin, TMP and svn interaction. (Closed)

Created:
10 years, 7 months ago by M-A Ruel
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Hack to work around bad cygwin, TMP and svn interaction. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=45852

Patch Set 1 #

Patch Set 2 : another cygwin hack #

Patch Set 3 : Final version #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M trychange.py View 1 2 1 chunk +10 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
M-A Ruel
10 years, 7 months ago (2010-04-28 20:00:57 UTC) #1
Erik does not do reviews
10 years, 7 months ago (2010-04-28 20:12:43 UTC) #2
LGTM

On Wed, Apr 28, 2010 at 1:00 PM,  <maruel@chromium.org> wrote:
> Reviewers: Erik Kay,
>
> Description:
> Hack to work around bad cygwin, TMP and svn interaction.
>
> Please review this at http://codereview.chromium.org/1702012/show
>
> Affected files:
>  M trychange.py
>
>
> Index: trychange.py
> diff --git a/trychange.py b/trychange.py
> index
>
1a87028f02f161d8cafad83df94805aab57449b7..2e5239a9e70fbf84a4d17bf77b1754c1bf429fdc
> 100755
> --- a/trychange.py
> +++ b/trychange.py
> @@ -353,7 +353,16 @@ def _SendChangeSVN(options):
>       gclient_utils.FileWrite(full_path, options.diff, 'wb')
>
>       # Committing it will trigger a try job.
> -      command = ['svn', 'import', '-q', temp_dir, options.svn_repo,
> '--file',
> +      if sys.platform == "cygwin":
> +        # Small chromium-specific issue here:
> +        # git-try uses /usr/bin/python on cygwin but svn.bat will be used
> +        # instead of /usr/bin/svn by default. That causes bad things(tm)
> since
> +        # Windows' svn.exe has no clue about cygwin paths. Hence force to
> use
> +        # the cygwin version in this particular context.
> +        exe = "/usr/bin/svn"
> +      else:
> +        exe = "svn"
> +      command = [exe, 'import', '-q', temp_dir, options.svn_repo, '--file',
>                  temp_file.name]
>       gclient_utils.CheckCall(command)
>     except gclient_utils.CheckCallError, e:
>
>
>

Powered by Google App Engine
This is Rietveld 408576698