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

Side by Side Diff: man/src/git-drover.demo.4.sh

Issue 1397313002: Support merging with conflicts with git-drover. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « man/src/git-drover.txt ('k') | tests/git_drover_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2 . git-drover.demo.common.sh 2 . git-drover.demo.common.sh
3 3
4 drover_c "This change needs to go to branch 9999" 4 drover_c "This change needs to go to branch 9999"
5 5
6 echo "# Here's a commit (from some.committer) that we want to 'drover'." 6 echo "# Here's a commit (from some.committer) that we want to 'drover'."
7 run git log -n 1 --pretty=fuller 7 run git log -n 1 --pretty=fuller
8 echo 8 echo
9 echo "# Now do the 'drover'." 9 echo "# Now do the 'drover'."
10 pcommand git drover --branch 9999 \ 10 pcommand git drover --branch 9999 \
11 --cherry-pick $(git show-ref -s pick_commit) 11 --cherry-pick $(git show-ref -s pick_commit)
12 12
13 echo "Going to cherry-pick" 13 echo "Going to cherry-pick"
14 echo '"""' 14 echo '"""'
15 output git log -n 1 15 output git log -n 1
16 echo '"""' 16 echo '"""'
17 echo "to 9999. Continue (y/n)? y" 17 echo "to 9999. Continue (y/n)? y"
18 echo 18 echo
19 echo "Error: Patch failed to apply."
20 echo
21 echo "A workdir for this cherry-pick has been created in"
22 echo " /tmp/drover_9999"
23 echo
24 echo "To continue, resolve the conflicts there and run"
25 echo " git drover --continue /tmp/drover_9999"
26 echo
27 echo "To abort this cherry-pick run"
28 echo " git drover --abort /tmp/drover_9999"
29 echo
30 pcommand pushd /tmp/drover_9999
31 echo "# Manually resolve conflicts."
32 pcommand git add path/to/file_with_conflicts
33 pcommand popd
34 pcommand git drover --continue /tmp/drover_9999
35 echo
19 echo "# A cl is uploaded to rietveld, where it can be reviewed before landing." 36 echo "# A cl is uploaded to rietveld, where it can be reviewed before landing."
20 echo 37 echo
21 echo "About to land on 9999. Continue (y/n)? y" 38 echo "About to land on 9999. Continue (y/n)? y"
22 echo "# The cherry-pick cl is landed on the branch 9999." 39 echo "# The cherry-pick cl is landed on the branch 9999."
OLDNEW
« no previous file with comments | « man/src/git-drover.txt ('k') | tests/git_drover_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698