query about gerrit cherrypick ( and some annoying behaviour ) etc

Bjoern Michaelsen bjoern.michaelsen at canonical.com
Mon Nov 5 05:08:26 PST 2012


Hi,

On Mon, Nov 05, 2012 at 10:33:56AM +0000, Noel Power wrote:
> I found some unreviewed patches of mine and also a patch ( some
> commits in the past ) in master that I just wanted to promote for
> review in 3.6, it seems that easiest way was to use the mail
> interface to ask for a cherry-pick ( or at least I didn't see
> anything else appropriate on the wiki ) Is that right, is there no
> command line interface to do similar? is there a better way to do
> that?

You can do the same with plain git: 
git checkout libreoffice-3-6
git cherry-pick foo
git push ssh://logerrit/core HEAD:refs/for/libreoffice-3-6

see http://gerrit.googlecode.com/svn/documentation/2.2.1/user-upload.html for details

> Another annoyance is that the owner of the bug in gerrit  ( e.g see
> https://gerrit.libreoffice.org/#/c/958/ ) is marked as "LibreOffice
> gerrit bot" instead of the author of the patch.

Yes, Id like to have that fixed too.
 
> Is this the expected way that things work? or did I just make a mess
> of things ( if so would be grateful to know what I should have done
> for future reference )
> 2012-11-01 16:18:38,404 WARNING  To ssh://logerrit/core
> 2012-11-01 16:18:38,404 WARNING   ! [remote rejected] HEAD -> refs/for/libreoffice-3-6 (no changes made)
> 2012-11-01 16:18:38,404 WARNING  error: failed to push some refs to 'ssh://logerrit/core'
> 2012-11-01 16:18:38,405 ERROR    call to "git --work-tree=/tmp/tmpHZMY4L/repo push ssh://logerrit/core HEAD:refs/for/libreoffice-3-6" returned: 1

It seems to me the cherry-picked change was already on the branch, thus no
commit generated by cherry-picking, thus nothing to upload.

Best,

Bjoern


More information about the LibreOffice mailing list