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 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
Using REST APIs
Gerrit trackingid not working
Gerrit: remote rejected (you are not allowed to upload merges) even though I allowed “Push merge commit”
gerrit: access gerrit repositories as root user by using public key of another user
What does “Reply 'Done'” conventionally mean in Gerrit?
Restrict which branches can be tagged
not to create new commit-id on gerrit
Shibboleth protected Gerrit installation
gerrit hooks - automatically push upstream for review

Categories

HOME
maven
vim
gitlab
hive
amazon-ec2
zeromq
isabelle
server
ngrx
angular-material
tesseract
android-4.4-kitkat
at-command
amortized-analysis
in-app-purchase
windows-10-universal
reveal.js
numeral.js
windows-azure-storage
foselasticabundle
footer
object-detection
scriptcs
mps
web-sql
chromium-embedded
mmap
cultureinfo
sparse-matrix
internet-explorer-9
libssl
c++-amp
binary-data
xquery-3.0
semantic-versioning
google-sites-2016
webtest
phpfreechat
form-data
bower-install
vxworks
event-driven
withings
code-search-engine
greenrobot-eventbus
user-controls
ws-security
fedex
estimote
babel-core
cubic-spline
wso2carbon
errordocument
pnotify
dropbox-php
diagnostics
media-player
akka-cluster
mcafee
contact-list
angstrom-linux
tcpserver
maven-tomcat-plugin
wso2cloud
metaclass
comobject
jmeter-maven-plugin
iis-arr
security-testing
coveralls
map-projections
riak-cs
cakephp-3.1
interrupted-exception
appfabric-cache
dd
html-helper
typeof
uitouch
jquery-layout
doskey
braille
page-layout
.aspxauth
commoncrypto
referrer
angularjs-controller
mhtml
first-responder
uiviewanimation-curve
cufon
custom-backend
window-management
qt-jambi
spyware
deobfuscation
perfect-hash
multi-tier
nintendo-ds
xetex
spec#

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App