Skip to content

Instantly share code, notes, and snippets.

@trentm
Created October 10, 2019 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trentm/6188f14cd7487ac288c85080bfa7c3f3 to your computer and use it in GitHub Desktop.
Save trentm/6188f14cd7487ac288c85080bfa7c3f3 to your computer and use it in GitHub Desktop.
Example run of cr2pr tool from https://github.com/joyent/gerrit-migration
$ ./bin/cr2pr 6967
cr2pr version 1.0.4
Temporary working dir: /var/tmp/cr2pr-6967-20191010T155122
Repository: joyent/play
# This will migrate https://cr.joyent.us/6967 to https://github.com/joyent/play/pulls
## Create a Markdown summary of the CR
wrote pr-message.md
## Getting a local clone of git@github.com:joyent/play
## Creating branch cr6967-joyent-play-1 for PR (from parent commit 41077faf5409cb7b55ec292d1ddd2f573ceef2e2)
Switched to branch 'cr6967-joyent-play-1'
Applying: joyent/play#1 make test
.git/rebase-apply/patch:17: new blank line at EOF.
+
warning: 1 line adds whitespace errors.
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 340 bytes | 340.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
remote:
remote: Create a pull request for 'cr6967-joyent-play-1' on GitHub by visiting:
remote: https://github.com/joyent/play/pull/new/cr6967-joyent-play-1
remote:
To github.com:joyent/play
* [new branch] cr6967-joyent-play-1 -> cr6967-joyent-play-1
## Creating the PR
Running: hub pull-request -F ../pr-message.md
Created PR: https://github.com/joyent/play/pull/4
## Abandoning the CR
Running: ssh cr gerrit review --abandon -m https://github.com/joyent/play/pull/4 7f42762f909a16e7dc043a6e882c3cd24e889bf8
Successfully moved https://cr.joyent.us/6967 to https://github.com/joyent/play/pull/4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment