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

Issue 2215673002: gclient_scm: Make calls to "git merge-base" non-fatal. (Closed)

Created:
4 years, 4 months ago by Raphael Kubo da Costa (rakuco)
Modified:
4 years, 4 months ago
Reviewers:
agable, M-A Ruel, iannucci
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

gclient_scm: Make calls to "git merge-base" non-fatal. It might be the case for some repositories that there is no merge base between the current git HEAD and origin/master, which causes git merge-base to exit with a non-zero code and cause calls to gclient status/diff/pack to fail, as well as gclient sync if the repository in question has been removed from DEPS. This is true for the external/webrtc/trunk/talk repository, for example. Its recent release branches (branch-heads/45 all the way to /53 at least) have no ancestry shared with its master branch, so gclient sync'ing from a Chromium M51 checkout to an M52 one (where it's no longer in DEPS) fails because of the failed git merge-base calls. We now ignore failures and just don't specify a merge base when calling "git diff". BUG=633962 R=iannucci@chromium.org,agable@chromium.org,maruel@chromium.org Committed: https://chromium.googlesource.com/chromium/tools/depot_tools/+/05c835919467e87b13c39c687cdbe659300784ea

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -7 lines) Patch
M gclient_scm.py View 3 chunks +16 lines, -7 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Raphael Kubo da Costa (rakuco)
PTAL. This is the past of least effort to fixing/working around the gclient failures I ...
4 years, 4 months ago (2016-08-04 09:36:01 UTC) #1
M-A Ruel
lgtm
4 years, 4 months ago (2016-08-04 15:06:28 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2215673002/1
4 years, 4 months ago (2016-08-04 15:29:13 UTC) #4
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 15:32:45 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/tools/depot_tools/+/05c835919467e8...

Powered by Google App Engine
This is Rietveld 408576698