gerrit


Submit patch in gerrit without parents


I'm currently setting up a gerrit server in my new company. I used to use gerrit for few years now but I never setup one.
I installed gerrit 2.13.5 and I'm trying to configure it. I have two last issues I'm trying to fix (I'll only discuss one here).
I have a list of commits A->B->C
A is the parent of B, B is the parent of C
Someone reject (-2) my patch A and B (because they're bad) but accept C (+2).
C is completly unrelated to A and B (another file in another folder into my project)
A button "Submit including parents" appears to my commit C but I cannot cherry-pick it into gerrit/master branch since A and B are reject.
Since C is not related to A or B, but I don't want to have to much local branches, I've done all 3 commits into the same branch.
I use cherry-pick submit option into gerrit configuration
[submit]
action = cherry pick
mergeContent = true
I supposed that using this option, I could cherry-pick any commits with no direct parents dependencies. I used to do so in my previous company but I cannot succeed to setup gerrit this way here.
If anyone have ideas or questions I will really by please to get or answer it.
Cheers.
I've a very little different version of Gerrit (2.13.6) and I've tried to reproduce the issue here. I've found the following:
If the project strategy is "Cherry Pick", the button shows "Submit"
If the project strategy is any other option, the button shows "Submit including parents"
Using the first option it was possible to submit the second commit before the first one without issues.
So, I think is a good idea to check if you really have the strategy "Cherry Pick" set for your specific project. If the "Cherry Pick" strategy is correctly set then you could try to update for the last available version (2.13.7).

Related Links

How do I merge Gerrit instances without losing history
Buildbot nightly build is failing to checkout the branch
Serve custom commit-msg hook from Gerrit
Customize Gerrit sign in page
Gerrit rejected push for valid LDAP member
Gerrit submit change after abandoning its parent
Gerrit - Reload Plugins to incorporate changes
Adding gerrit label, but not able to see it properly in review page
Make a list inside another list in a gerrit comment
How to assign access rights to a Gerrit project using API / SSH?
How to change a patchset and push it as a new one?
Gerrit patch comparision for Sql files
How to 'reply done' in Gerrit when I address people code review comment
How to search for changesets in Gerrit than need to be rebased?
Gerrit GitBlit Plugin shows no Branch Graph
Bad permissions for Gerrit Administrator

Categories

HOME
maven
deployment
image-processing
heroku
relative-path
razor
packages
c#-2.0
retrofit
cross-browser
fancybox
swagger-ui
adfs
gorm
windows-phone-7
msp430
dynamics-crm-online
pc
apache-metamodel
interop
textfield
introduction
nas
errorlevel
mustache.php
smb
microsoft-sync-framework
filezilla
linkerd
wtx
libuv
gitignore
grails-3.1
commit
geopositioning
http-digest
appfabric
io-redirection
az-application-insights
webix-treetable
elasticsearch-plugin
cookiecutter-django
tasker
particles.js
sql-server-agent
heightmap
unixodbc
angular-resource
scrollable
hibernate-tools
aurelia-validation
dtexec
query-performance
abcpdf9
instant
url-masking
blackberry-10
skype4py
ios4
pyke
kendonumerictextbox
0xdbe
arcanist
bridge.net
lustre
geonetwork
offloading
c3
camanjs
coldbox
device-manager
eol
funcunit
valueconverter
xceed-datagrid
transcoding
mcts
cdc
funscript
qtkit
windows-phone-7.1.1
enter
pendrive
hgsubversion
disclosure
oncheckedchanged
sql-server-profiler
html-input
h.323
web-architecture
substrings
xetex
zune
w3wp
msdev

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App