gerrit

Gerrit always rebase before submit patchset to avoid a merge commit

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I found that when clicking "Submit Patch Set" in the Gerrit web interface, it'll either simply add a commit to that branch, or create a merge commit if another commit was submitted just before. Example that creates 2 commit: The actual commit and a merge commit: User submits patchset A depending on commit O User submits patchset B depending on commit O Submit Patch Set A Submit Patch Set B --> Creates merge commit between O -> A and O -> B There is a "Rebase Change" button which is great but it means that to submit a patch set everyone

Gerrit & Phabricator review [closed]

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Has anyone done a review between Phabricator and Gerrit ? I am looking out for a review tool and want to settle on one based on: Ease of use Comprehensiveness in features Activity by the community and adoption Edit: I use Git 回答1: I've tried to compare them and these are the most prominent differences I've found Gerrit +Acts as a repository so you push to it and it creates a review issue of your commit +No commit ever gets through with out review as it is impossible to forget to create review issue -Works only with git -Can't handle post

Gerrit and Active Directory

匿名 (未验证) 提交于 2019-12-03 02:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to set up Gerrit to use our corporate Active Directory for authentication. I know plenty of people have managed to get this to work but it just won't work for me. If I run an ldapsearch command as follows I get the correct result, so I know my search strings are correct: ldapsearch -h myserver -b "CN=Users,DC=mycompany,DC=com" -D "CN=adam,CN=Users,DC=mycompany,DC=com" -w mypassword "(sAMAccountName=adam)" But using these same settings in my Gerrit config doesn't work: [auth] type = LDAP [ldap] server = ldap://myserver accountBase

Edit project.config in a Gerrit project

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to add a "verified" label to my Gerrit project to allow Jenkins to verify that the code builds and passes its tests and so on. I know I need to add a section to project.config as below: [label "Verified"] function = MaxWithBlock value = -1 Fails value = 0 No score value = +1 Verified However, how do I get to that file to edit it? 回答1: The project settings are kept in the Git repository for the project. You can edit them by cloning the project from Gerrit, making the change, committing and pushing back to Gerrit. You can do this for

Missing dependency in Gerrit

匿名 (未验证) 提交于 2019-12-03 02:22:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I had four changes in Gerrit, each depending on previous one (except first, of course). I've abandoned second and third and reviewed first and fourth. Since first wasn't depending on anything, Gerrit managed to auto-merge it. Now, the fourth (depending on abandoned third) is a real problem. Gerrit states Submitted, Merge Pending with: Change could not be merged because of a missing dependency. The following changes must also be submitted: and giving me change-Id of both abandoned changes. How can I get rid of this chaos? From what I've

Gerrit Add Reviewers

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a project in Gerrit and each time I submit a change I manually have to add a group of reviewers to that change. Is there a mechanism that would allow me to specify reviewers that I want to be emailed for each change? 回答1: You can use the %r=reviewer@mail.com syntax on your branch specifier during a push to automatically add reviewers to a change. You can add as many emails as you want and all will be emailed, e.g. git push tr:kernel/common HEAD:refs/for/experimental%r=a@a.com,r=b@b.com,cc=c@c.com It’s a good idea to just specify this

How to git-pull a given patch set from Gerrit?

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When working with Gerrit (Code Review), I often need to get a copy of a given patch set for testing or validation purpose. The obvious and easiest way is to download the archive or the patch file through the Gerrit Web interface and manually apply it to my local source. While the above steps are pretty straightforward and fulfill my needs, in the best world I would like to have the patch set appearing as a commit in my local Git. I was looking around and didn't find the solution. I found some sparse info that once compiled together gives the

git alias for HEAD:refs/for/master

匿名 (未验证) 提交于 2019-12-03 02:12:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am configuring Gerrit and I would like to avoid writing: git push gerrit HEAD:refs/for/master I would like to write: git push review I am sure it's possible modifying .git/config but I can't make it work. 回答1: I set up two different push types, review and noreview: for reviews: git config remote.review.pushurl ssh://<GERRIT_HOST>:29418/<PROJECT_PATH>.git git config remote.review.push refs/heads/*:refs/for/* git push review # this will push your current branch up for review to bypass review: git config remote.noreview.pushurl ssh://<GERRIT

How to install delete-project plugin in gerrit?

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I want to install delete-project plugin to my gerrit server. As per the latest version, I should clone it from google source and use buck build. I cloned it and my buck is also ready. What are the steps to be followed to build the delete project plugin and add it to my gerrit server. I tried buck build . in the cloned source of delete-project. But, I am getting the following error Traceback ( most recent call last ): File "/home/gerrit/buck/src/com/facebook/buck/parser/buck.py" , line 872 , in main () File "/home/gerrit/buck/src

Delete a project in Gerrit

匿名 (未验证) 提交于 2019-12-03 02:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I can create a project in Gerrit through: But, how can I delete any project? I haven't see related commands or buttons on web page. 回答1: Notice: Since this question was origionally asked, I've released the delete project plugin , and handed it off to the more active Gerrit devs. If you are using Gerrit >= 2.7, I'd recommend this route. If not, read on. There isn't a method to delete projects from Gerrit currently. It must be done by hand. This is the most-requested feature of Gerrit . There are two steps to delete a project by hand: Delete