Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (master)
$ git checkout -b mb-1
Switched to a new branch 'mb-1'
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-1)
$ git push --set-upstream origin mb-1
Total 0 (delta 0), reused 0 (delta 0)
remote:
remote: Create pull request for mb-1:
remote: https://bitbucket.org/.../rb-test/pull-requests/new?source=mb-1&t=1
remote:
To git@bitbucket.org:shipwire/rb-test.git
* [new branch] mb-1 -> mb-1
Branch mb-1 set up to track remote branch mb-1 from origin.
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-1)
$ vi foo.py
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-1)
$ vi bar.py
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-1)
$ git commit -a
[mb-1 216b719] Adding via mb-1
2 files changed, 4 insertions(+)
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-1)
$ git checkout -b mb-2
Switched to a new branch 'mb-2'
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-2)
$ git status
On branch mb-2
Untracked files:
(use "git add <file>..." to include in what will be committed)
find_gitpush_done
../conf/file.txt
../copy_merchant_output.txt
../copy_merchant_output2.txt
../output.txt
../output2.txt
nothing added to commit but untracked files present (use "git add" to track)
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-2)
$ git push --set-upstream mb-1 mb-2
fatal: 'mb-1' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-2)
$ git push --set-upstream origin/mb-1 mb-2
fatal: 'origin/mb-1' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-2)
$ git push --set-upstream origin mb-2
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 451 bytes | 0 bytes/s, done.
Total 5 (delta 4), reused 0 (delta 0)
remote:
remote: Create pull request for mb-2:
remote: https://bitbucket.org/.../rb-test/pull-requests/new?source=mb-2&t=1
remote:
To git@bitbucket.org:shipwire/rb-test.git
* [new branch] mb-2 -> mb-2
Branch mb-2 set up to track remote branch mb-2 from origin.
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-2)
$ gitk
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-2)
$ vi foo.py
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-2)
$ git commit -a
[mb-2 ec57060] Add via mb-2
1 file changed, 2 insertions(+)
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-2)
$ git checkout mb-1
Switched to branch 'mb-1'
Your branch is ahead of 'origin/mb-1' by 1 commit.
(use "git push" to publish your local commits)
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-1)
$ rbt post
Review request #71 posted.
http://rb.tools.aws.....com/r/71/
http://rb.tools.aws.....com/r/71/diff/
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-1)
$ git checkout mb-2
Switched to branch 'mb-2'
Your branch is ahead of 'origin/mb-2' by 1 commit.
(use "git push" to publish your local commits)
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-2)
$ rbt post
Review request #72 posted.
http://rb.tools.aws.....com/r/72/
http://rb.tools.aws.....com/r/72/diff/
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-2)
$ git checkout mb-1
Switched to branch 'mb-1'
Your branch is ahead of 'origin/mb-1' by 1 commit.
(use "git push" to publish your local commits)
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-1)
$ rbt land --dest=mb-1 --push mb-1
ERROR: The local branch cannot be merged onto itself. Try a different local branch or destination branch.
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-1)
$ rbt land --dest=origin/mb-1 --push mb-1
Merging branch "mb-1" into "origin/mb-1"
Deleting merged branch "mb-1"
Pushing branch "origin/mb-1" upstream
ERROR: Could not pull changes from upstream.
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin ((6efeb87...))
$ rbt land --dest=mb-1 --push origin/mb
Failed to execute command: ['git', 'rev-parse', 'origin/mb']
origin/mb
fatal: ambiguous argument 'origin/mb': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin ((6efeb87...))
(arg: 2) rbt land --dest=mb-1 --push origin/mb
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin ((6efeb87...))
$ rbt land --dest=mb-2 --push origin/mb-2
Merging branch "origin/mb-2" into "mb-2"
Failed to execute command: ['git', 'commit', '-m', u'Adding via mb-1\n\nReviewed at http://rb.tools.aws.....com/r/7
1/', u'--author="Dave Anderson <David....com>"']
On branch mb-2
Your branch is ahead of 'origin/mb-2' by 1 commit.
(use "git push" to publish your local commits)
Untracked files:
bin/find_gitpush_done
conf/file.txt
copy_merchant_output.txt
copy_merchant_output2.txt
output.txt
output2.txt
nothing added to commit but untracked files present
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin (mb-2)
$ rbt land --dest=origin/mb-2 --push mb-2
Merging branch "mb-2" into "origin/mb-2"
Deleting merged branch "mb-2"
Pushing branch "origin/mb-2" upstream
ERROR: Could not pull changes from upstream.
Dave-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test/bin ((ca80b47...))
$
--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
$ git checkout master
$ rbt land --dest=master --push my-branch-1
$ rbt land --dest=master --push my-branch-2
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscribe@googlegroups.com.
Thanks Christian, that helps a lot, especially drawing my attention to aliases. I think that between git and rb aliases I might be able to come up with something elegant and simple.
A couple of things:
Is there a way to get rbt to remove "Ship it" to address the unreviewed changes scenario that you describe? I am not unduly worried about that -- IMO that falls under "bad behavior" which we don't have much trouble with at our small size. But, an ounce of prevention...
Having said that, I should point out that setting up required reviewers per file/dir is more of a check for unintended consequences than a check for bad behavior. :)
Also, I have found that I get errors when passing '-u' to rbt when there is nothing to update. It would simplify automation if there were a way to get rbt to ignore use of '-u' when it's a no-op instead of erroring out. I would not be surprised to hear that it needs to be that way for some good reason, but I thought I would toss it out there since it seems like an easy thing for people to overlook in their workflows. I may be able to alias my way out of that though...
Thanks again, I'm off to play with aliases. :)
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscribe@googlegroups.com.
Hey Dave,Glad that helped :)On Wed, May 17, 2017 at 3:34 PM, <dave.a...@shipwire.com> wrote:Thanks Christian, that helps a lot, especially drawing my attention to aliases. I think that between git and rb aliases I might be able to come up with something elegant and simple.
A couple of things:
Is there a way to get rbt to remove "Ship it" to address the unreviewed changes scenario that you describe? I am not unduly worried about that -- IMO that falls under "bad behavior" which we don't have much trouble with at our small size. But, an ounce of prevention...I wasn't sure what you meant here by removing Ship It. Can you go into that more?
Having said that, I should point out that setting up required reviewers per file/dir is more of a check for unintended consequences than a check for bad behavior. :)
Also, I have found that I get errors when passing '-u' to rbt when there is nothing to update. It would simplify automation if there were a way to get rbt to ignore use of '-u' when it's a no-op instead of erroring out. I would not be surprised to hear that it needs to be that way for some good reason, but I thought I would toss it out there since it seems like an easy thing for people to overlook in their workflows. I may be able to alias my way out of that though...Hmm, errors aren't good. What are you seeing?
ERROR: Could not determine the existing review request to update.
'commit1': '!git commit $* &&'
'!export BRANCH=$(git rev-parse --abbrev-ref HEAD);rbt post -s --branch $BRANCH',
'commit': '!git commit $* &&'
'!export BRANCH=$(git rev-parse --abbrev-ref HEAD) &&'
'rbt post -u --branch $BRANCH',
Dave Anderson@DaveAnderson-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test (rc-branchadd)
$ rbt commit
[rc-branchadd 1f8a05b] nother attempt at shell behavior
1 file changed, 2 insertions(+), 1 deletion(-)
'export' is not recognized as an internal or external command,
operable program or batch file.
Dave Anderson@DaveAnderson-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test (rc-branchadd)
$ git add .reviewboardrc
Dave Anderson@DaveAnderson-PC MINGW64 ~/Vagrant/sws-vagrant/src/rb-test (rc-branchadd)
$ rbt commit
[rc-branchadd 2d037ce] Adding bang
1 file changed, 2 insertions(+), 2 deletions(-)
'!export' is not recognized as an internal or external command,
operable program or batch file.
'rbt post -u --branch `git rev-parse --abbrev-ref HEAD`',
'rbt post -u --branch $(git rev-parse --abbrev-ref HEAD)',
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscribe@googlegroups.com.
'commit': '!git commit $* &&'
'export BRANCH=$(git rev-parse --abbrev-ref HEAD) &&'
'rbt post -u --branch $BRANCH',
'commit1': '!git commit $* &&'
'!export BRANCH=$(git rev-parse --abbrev-ref HEAD) &&'
'rbt post -s --branch $BRANCH',
'commita': '!git commit $* &&'
'BRANCH=$(git rev-parse --abbrev-ref HEAD) &&'
'rbt post -u --branch $BRANCH',
'commit1a': '!git commit $* &&'
'!BRANCH=$(git rev-parse --abbrev-ref HEAD) &&'
'rbt post -s --branch $BRANCH',
'commitb': '!git commit $* &&'
'BRANCH=$(git rev-parse --abbrev-ref HEAD);rbt post -u --branch $BRANCH',
'commit1b': '!git commit $* &&'
'rbt post -s --branch `git rev-parse --abbrev-ref HEAD`',