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

Issue 184253003: Add git-reup and friends (Closed)

Created:
6 years, 9 months ago by iannucci
Modified:
6 years, 9 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@freeze_thaw
Visibility:
Public.

Description

Add a family of git-commands to assist with the management of multiple CLs/branches. git-rebase-update - ensure all branches are up to date git-new-branch - create branches git-rename-branch - rename a branch while preserving parentage relationships git-reparent-branch - change the parent of a branch, including rebasing it correctly onto that new parent. git-squash-branch - collapse a branch into a single commit git-upstream-diff - show the diff between the current branch and it's upstream branch git-mark-merge-base - explicitly set what you want the above tools to consider the merge-base for the current branch. R=agable@chromium.org, hinoka@chromium.org, stip@chromium.org, szager@chromium.org BUG=261738 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=259520

Patch Set 1 #

Total comments: 32

Patch Set 2 : Lots of improvements. Full test coverage on rebase-update. #

Patch Set 3 : nits #

Patch Set 4 : one more argparse #

Total comments: 32

Patch Set 5 : comments #

Patch Set 6 : refactoring and determinisim #

Patch Set 7 : adding more docs and rebase #

Patch Set 8 : man pages galore :) #

Patch Set 9 : "done" #

Patch Set 10 : minor fixes #

Total comments: 55

Patch Set 11 : --root and --lkgr #

Patch Set 12 : resolve comments #

Patch Set 13 : more determinisim #

Patch Set 14 : +assert #

Patch Set 15 : account for git 1.8 v 1.9 discrepency. we'll need ppl to configure a fetch ref for lkgr #

Patch Set 16 : fix pylint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3629 lines, -686 lines) Patch
M docs/html/depot_tools.html View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +57 lines, -1 line 0 comments Download
M docs/html/git-freeze.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M docs/html/git-map.html View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +15 lines, -10 lines 0 comments Download
M docs/html/git-map-branches.html View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +16 lines, -4 lines 0 comments Download
A + docs/html/git-mark-merge-base.html View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +39 lines, -30 lines 0 comments Download
M docs/html/git-nav-downstream.html View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -1 line 0 comments Download
M docs/html/git-nav-upstream.html View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -1 line 0 comments Download
A + docs/html/git-new-branch.html View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +120 lines, -26 lines 0 comments Download
A + docs/html/git-rebase-update.html View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +117 lines, -59 lines 0 comments Download
A + docs/html/git-rename-branch.html View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +11 lines, -11 lines 0 comments Download
A + docs/html/git-reparent-branch.html View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +57 lines, -35 lines 0 comments Download
A + docs/html/git-squash-branch.html View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +56 lines, -62 lines 0 comments Download
M docs/html/git-thaw.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
A + docs/html/git-upstream-diff.html View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +81 lines, -52 lines 0 comments Download
M docs/man1/depot_tools.1 View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +38 lines, -3 lines 0 comments Download
M docs/man1/git-freeze.1 View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -3 lines 0 comments Download
M docs/man1/git-map.1 View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +21 lines, -9 lines 0 comments Download
M docs/man1/git-map-branches.1 View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +18 lines, -3 lines 0 comments Download
A + docs/man1/git-mark-merge-base.1 View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +22 lines, -39 lines 0 comments Download
M docs/man1/git-nav-downstream.1 View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +18 lines, -3 lines 0 comments Download
M docs/man1/git-nav-upstream.1 View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +18 lines, -3 lines 0 comments Download
A docs/man1/git-new-branch.1 View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +150 lines, -0 lines 0 comments Download
A docs/man1/git-rebase-update.1 View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +165 lines, -0 lines 0 comments Download
A + docs/man1/git-rename-branch.1 View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -10 lines 0 comments Download
A + docs/man1/git-reparent-branch.1 View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +39 lines, -32 lines 0 comments Download
A docs/man1/git-squash-branch.1 View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +117 lines, -0 lines 0 comments Download
M docs/man1/git-thaw.1 View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -3 lines 0 comments Download
A docs/man1/git-upstream-diff.1 View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +119 lines, -0 lines 0 comments Download
A docs/src/_aliases.txt View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M docs/src/_footer.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M docs/src/_git-map-branches_desc.helper.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M docs/src/_git-map_desc.helper.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
A docs/src/_git-mark-merge-base_desc.helper.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A docs/src/_git-new-branch_desc.helper.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A docs/src/_git-rebase-update_desc.helper.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A docs/src/_git-rename-branch_desc.helper.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A docs/src/_git-reparent-branch_desc.helper.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A docs/src/_git-squash-branch_desc.helper.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A docs/src/_git-upstream-diff_desc.helper.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M docs/src/depot_tools.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M docs/src/git-freeze.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M docs/src/git-map.txt View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +12 lines, -11 lines 0 comments Download
M docs/src/git-map-branches.txt View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -4 lines 0 comments Download
A docs/src/git-mark-merge-base.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +46 lines, -0 lines 0 comments Download
M docs/src/git-nav-downstream.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -1 line 0 comments Download
M docs/src/git-nav-upstream.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -1 line 0 comments Download
A docs/src/git-new-branch.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +113 lines, -0 lines 0 comments Download
A docs/src/git-rebase-update.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +130 lines, -0 lines 0 comments Download
A docs/src/git-rename-branch.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +28 lines, -0 lines 0 comments Download
A docs/src/git-reparent-branch.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +61 lines, -0 lines 0 comments Download
A docs/src/git-squash-branch.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +92 lines, -0 lines 0 comments Download
M docs/src/git-thaw.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
A docs/src/git-upstream-diff.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +81 lines, -0 lines 0 comments Download
A + git-mark-merge-base View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
A + git-new-branch View 1 1 chunk +2 lines, -2 lines 0 comments Download
A + git-rebase-update View 1 1 chunk +3 lines, -3 lines 0 comments Download
A + git-rename-branch View 1 1 chunk +2 lines, -2 lines 0 comments Download
A git-reparent-branch View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A + git-squash-branch View 1 1 chunk +2 lines, -3 lines 0 comments Download
A + git-upstream-diff View 1 1 chunk +2 lines, -2 lines 0 comments Download
M git_common.py View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +316 lines, -51 lines 0 comments Download
M git_freezer.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -50 lines 0 comments Download
M git_map.py View 1 2 3 4 5 6 7 4 chunks +23 lines, -0 lines 0 comments Download
M git_map_branches.py View 1 2 5 chunks +19 lines, -8 lines 0 comments Download
A git_mark_merge_base.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +68 lines, -0 lines 0 comments Download
M git_nav_downstream.py View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A git_new_branch.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +53 lines, -0 lines 0 comments Download
A git_rebase_update.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +245 lines, -0 lines 0 comments Download
A git_rename_branch.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +50 lines, -0 lines 0 comments Download
A git_reparent_branch.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +74 lines, -0 lines 0 comments Download
A git_squash_branch.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +20 lines, -0 lines 0 comments Download
A git_upstream_diff.py View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
M testing_support/git_test_utils.py View 1 2 3 4 5 6 7 8 9 10 11 12 15 chunks +112 lines, -29 lines 0 comments Download
M tests/git_common_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 9 chunks +296 lines, -9 lines 0 comments Download
M tests/git_freezer_test.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -99 lines 0 comments Download
M tests/git_number_test.py View 1 1 chunk +1 line, -1 line 0 comments Download
A tests/git_rebase_update_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +337 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
iannucci
6 years, 9 months ago (2014-02-28 08:27:53 UTC) #1
agable
https://codereview.chromium.org/184253003/diff/1/git-upstream-diff File git-upstream-diff (right): https://codereview.chromium.org/184253003/diff/1/git-upstream-diff#newcode6 git-upstream-diff:6: git diff $(git merge-base '@{u}' HEAD) --patience --word-diff=color --word-diff-regex='\\w+|[^[:space:]]' ...
6 years, 9 months ago (2014-02-28 20:14:16 UTC) #2
Ryan Tseng
Usage/help strings will be helpful, I have no idea what most of these do based ...
6 years, 9 months ago (2014-02-28 21:22:05 UTC) #3
szager1
https://codereview.chromium.org/184253003/diff/1/git-merge-base-tag File git-merge-base-tag (right): https://codereview.chromium.org/184253003/diff/1/git-merge-base-tag#newcode6 git-merge-base-tag:6: . ${0/%$(basename "$0")/python_git_runner.sh} ${0%/*}/python_git_runner.sh And where is this "python_git_runner.sh" ...
6 years, 9 months ago (2014-02-28 22:56:39 UTC) #4
iannucci
OK, lots of fixes (basically 100% different), plus tests. PTAL manpages coming soon.
6 years, 9 months ago (2014-03-20 10:45:50 UTC) #5
iannucci
https://codereview.chromium.org/184253003/diff/1/git_rebase_update.py File git_rebase_update.py (right): https://codereview.chromium.org/184253003/diff/1/git_rebase_update.py#newcode91 git_rebase_update.py:91: print 'Your working copy is in mid-rebase. Please completely ...
6 years, 9 months ago (2014-03-20 10:59:37 UTC) #6
agable
Incomplete review (haven't looked at all of reup yet) but I have 9 more reviews ...
6 years, 9 months ago (2014-03-21 01:14:20 UTC) #7
iannucci
PTAL https://codereview.chromium.org/184253003/diff/60001/git-reparent-branch File git-reparent-branch (right): https://codereview.chromium.org/184253003/diff/60001/git-reparent-branch#newcode7 git-reparent-branch:7: # branch. Afterwards, run a `git rebase-update` cycle ...
6 years, 9 months ago (2014-03-22 04:17:35 UTC) #8
iannucci
OK, man pages are up for everything now too.
6 years, 9 months ago (2014-03-23 09:46:39 UTC) #9
agable
https://codereview.chromium.org/184253003/diff/180001/docs/html/git-freeze.html File docs/html/git-freeze.html (right): https://codereview.chromium.org/184253003/diff/180001/docs/html/git-freeze.html#newcode844 docs/html/git-freeze.html:844: Last updated 2014-03-22 12:59:00 PDT Is there any way ...
6 years, 9 months ago (2014-03-25 19:37:23 UTC) #10
ghost stip (do not use)
some comments https://chromiumcodereview.appspot.com/184253003/diff/180001/git_common.py File git_common.py (left): https://chromiumcodereview.appspot.com/184253003/diff/180001/git_common.py#oldcode204 git_common.py:204: NO_BRANCH = ('* (no branch)', '* (detached ...
6 years, 9 months ago (2014-03-25 23:44:22 UTC) #11
ghost stip (do not use)
some comments
6 years, 9 months ago (2014-03-25 23:44:24 UTC) #12
iannucci
done. I vote that any other changes go into another cl https://codereview.chromium.org/184253003/diff/180001/docs/html/git-freeze.html File docs/html/git-freeze.html (right): ...
6 years, 9 months ago (2014-03-26 01:39:49 UTC) #13
agable
Sweeeeet. LGTM shipitshipit.
6 years, 9 months ago (2014-03-26 02:13:43 UTC) #14
iannucci
The CQ bit was checked by iannucci@chromium.org
6 years, 9 months ago (2014-03-26 02:17:46 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iannucci@chromium.org/184253003/450002
6 years, 9 months ago (2014-03-26 02:17:52 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-26 02:19:45 UTC) #17
commit-bot: I haz the power
Presubmit check for 184253003-450002 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 9 months ago (2014-03-26 02:19:46 UTC) #18
iannucci
The CQ bit was checked by iannucci@chromium.org
6 years, 9 months ago (2014-03-26 04:38:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iannucci@chromium.org/184253003/230005
6 years, 9 months ago (2014-03-26 04:38:47 UTC) #20
iannucci
The CQ bit was unchecked by iannucci@chromium.org
6 years, 9 months ago (2014-03-26 04:39:18 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-26 04:40:50 UTC) #22
iannucci
The CQ bit was checked by iannucci@chromium.org
6 years, 9 months ago (2014-03-26 04:40:50 UTC) #23
commit-bot: I haz the power
Presubmit check for 184253003-230005 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 9 months ago (2014-03-26 04:40:50 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iannucci@chromium.org/184253003/230005
6 years, 9 months ago (2014-03-26 04:40:53 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-26 04:44:02 UTC) #26
commit-bot: I haz the power
Presubmit check for 184253003-230005 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 9 months ago (2014-03-26 04:44:03 UTC) #27
iannucci
The CQ bit was checked by iannucci@chromium.org
6 years, 9 months ago (2014-03-26 05:51:44 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iannucci@chromium.org/184253003/940001
6 years, 9 months ago (2014-03-26 05:51:49 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-26 05:53:59 UTC) #30
commit-bot: I haz the power
Presubmit check for 184253003-940001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 9 months ago (2014-03-26 05:53:59 UTC) #31
iannucci
The CQ bit was checked by iannucci@chromium.org
6 years, 9 months ago (2014-03-26 06:15:47 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iannucci@chromium.org/184253003/990001
6 years, 9 months ago (2014-03-26 06:15:53 UTC) #33
commit-bot: I haz the power
6 years, 9 months ago (2014-03-26 06:18:51 UTC) #34
Message was sent while issue was closed.
Change committed as 259520

Powered by Google App Engine
This is Rietveld 408576698