CandyShop / gerrit

Automatically exported from code.google.com/p/gerrit
Apache License 2.0
1 stars 0 forks source link

ssh gerrit command improvements #1122

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have an idea for a git plugin that would ask Gerrit for open changes and then 
pull them into the repository.

The operations it would support would be:
1) Cherry-pick the latest patchset. (this should warn the user if it depends on 
a non-merged change)
2) Pull the latest patchset.

Optionally, it would create a new branch for the change as well.

To do this, I need:

* More information in the query.  Specifically, the git 'ref' of the latest 
patchset. (e.g. `refs/changes/88/1288/6`)
* Any dependencies for the latest patchset, if they aren't merged.
* Having the git-sha would be nice too.

This should be enough to generate a pretty command line tool for git to 
interact with Gerrit.

I think working through SSH would be the easiest, since I'll have the SSH 
information already in the git repository, I can just pull it out with 
git-config.

Original issue reported on code.google.com by docw...@gmail.com on 6 Sep 2011 at 3:49

GoogleCodeExporter commented 9 years ago
The SHA and ref are there if you use --current-patch-set. Dependencies will be 
added by Issue 1020. Is there anything else you'd need?

Original comment by nas...@codeaurora.org on 6 Sep 2011 at 4:15

GoogleCodeExporter commented 9 years ago
Ah, I didn't see the additional docs for query.  BTW: Can you update the docs 
links from 2.2.0 to 2.2.1 on the homepage?

I'll try playing with it next week...

Original comment by docw...@gmail.com on 8 Sep 2011 at 1:25