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

Issue 484143002: git_utils.py: allow checkouts of local repositories at any commithash along master branch (Closed)

Created:
6 years, 4 months ago by epoger
Modified:
6 years, 4 months ago
Reviewers:
borenet
CC:
reviews_skia.org, stephana
Base URL:
https://skia.googlesource.com/common.git@master
Project:
skiacommon
Visibility:
Public.

Description

git_utils.py: allow checkouts of local repositories at any commithash along master branch Needed so that we can create new GM/SKP baselines on a shared rebaseline_server instance, *efficiently*. (Create checkouts pinned to certain commithashes as copies of the local Skia checkout, rather than checking out copies of the main Skia repo across the internet.) BUG=skia:1918 NOTREECHECKS=true R=borenet@google.com Committed: https://skia.googlesource.com/common/+/5dd2918

Patch Set 1 #

Total comments: 7

Patch Set 2 : Eric comments #

Total comments: 4

Patch Set 3 : more #

Patch Set 4 : back to calling "git fetch" for more efficiency in certain situations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -29 lines) Patch
M py/utils/git_utils.py View 1 2 3 3 chunks +40 lines, -20 lines 0 comments Download
M py/utils/git_utils_manualtest.py View 1 2 7 chunks +23 lines, -9 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
epoger
Eric- PTAL at patchset 1.
6 years, 4 months ago (2014-08-19 14:23:42 UTC) #1
borenet
https://codereview.chromium.org/484143002/diff/1/py/utils/git_utils.py File py/utils/git_utils.py (right): https://codereview.chromium.org/484143002/diff/1/py/utils/git_utils.py#newcode199 py/utils/git_utils.py:199: self._run_in_git_root(args=[GIT, 'checkout', local_branch_name]) Why not just do: $ git ...
6 years, 4 months ago (2014-08-19 14:30:32 UTC) #2
epoger
Thanks, Eric. Please see patchset 2. https://codereview.chromium.org/484143002/diff/1/py/utils/git_utils.py File py/utils/git_utils.py (right): https://codereview.chromium.org/484143002/diff/1/py/utils/git_utils.py#newcode199 py/utils/git_utils.py:199: self._run_in_git_root(args=[GIT, 'checkout', local_branch_name]) ...
6 years, 4 months ago (2014-08-19 15:16:03 UTC) #3
borenet
https://codereview.chromium.org/484143002/diff/1/py/utils/git_utils.py File py/utils/git_utils.py (right): https://codereview.chromium.org/484143002/diff/1/py/utils/git_utils.py#newcode199 py/utils/git_utils.py:199: self._run_in_git_root(args=[GIT, 'checkout', local_branch_name]) On 2014/08/19 15:16:03, epoger wrote: > ...
6 years, 4 months ago (2014-08-19 15:24:28 UTC) #4
epoger
https://codereview.chromium.org/484143002/diff/1/py/utils/git_utils.py File py/utils/git_utils.py (right): https://codereview.chromium.org/484143002/diff/1/py/utils/git_utils.py#newcode199 py/utils/git_utils.py:199: self._run_in_git_root(args=[GIT, 'checkout', local_branch_name]) On 2014/08/19 15:24:28, borenet wrote: > ...
6 years, 4 months ago (2014-08-19 15:42:06 UTC) #5
borenet
LGTM. I don't particularly care about the clone vs init/fetch/checkout workflow - I suggested clone ...
6 years, 4 months ago (2014-08-19 15:50:20 UTC) #6
epoger
6 years, 4 months ago (2014-08-19 19:02:46 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 manually as 5dd2918 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698