gerrit

Missing dependency in Gerrit

冷暖自知 提交于 2019-12-30 07:15:54
问题 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

Delete a project in Gerrit

微笑、不失礼 提交于 2019-12-29 20:48:07
问题 I can create a project in Gerrit through: ssh –p 29418 [ip-address] gerrit create-project --name [project-name] 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

Phabricator,gerrit,gitlab code review方式对比

帅比萌擦擦* 提交于 2019-12-29 18:24:44
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> CR方式\ 对比项目 Phabricator Differential Phabircator Audit Gerrit Gitlab cr类型 Pre-commit Review Post-commit Review Post-commit Review Post-commit Review cr操作 通过命令行工具Arcanist提交diff自动生成Review Request。 一次完整的review流程如下: 1、新建分支:feature01 2、提交代码,执行命令: arc diff origin/dev 3、在打开的notepad 界面中,填写 Test Plan,Reviewers,Subscribers 4、打开命令行显示的url:http://phabricator.tools.vipshop.com/D35 页面中进行review 5、代码提交人查看review结果,修改代码后,直接提交代码到远程分支 通过将仓库托管在Phabircator中,通过Herala的方式配置规则强制Code Review 需要将仓库url改为Gerrit url。Gerrit通过hock的方式将修改同步到远程的gitlab仓库。review流程如下: 1、修改代码后,提交到Gerrit 2

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

…衆ロ難τιáo~ 提交于 2019-12-29 10:14:44
问题 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

How to configure specific upstream push refspec for Git when used with Gerrit?

房东的猫 提交于 2019-12-29 03:05:07
问题 I'm setting up Git with Gerrit Code Review and am looking for a way to make the necessary Git commands relatively straightforward for users who might be new to Git. The commands I currently have for starting a new feature branch are essentially (assuming Gerrit is origin ): git checkout baseline git pull git checkout -b work1234 git push -u origin work1234 This starts a new work package work1234 branched from some baseline , and the final push creates the branch in Gerrit and sets the

How to Execute Test Scripts on slave based on the filename committed on SCM

流过昼夜 提交于 2019-12-25 04:00:31
问题 SCM - Git, CI - Jenkins I have configured the Git,Gerrit & Jenkins workflow and configured Automation suite on a jenkins slave. I am able to run the TestNG suite on the slave machine after a patch set is created on Gerrit. But currently for any kind of patchset created on Gerrit the same test suite is invoked . What I want to achieve is perform tests based on the file name which was pushed into Gerrit . eg. If login.jsp is pushed then login tests should be performed not the full test suite.

How to submit my changes in abc file which is old version while git has same abc file with new changes by other developer?

核能气质少年 提交于 2019-12-25 03:19:09
问题 To be more clear, I was working on file abc which was in my remote repository for a long time and some other developer worked on same file made new changes and merged. I checkout to my old commit after a long time which has old version of abc file and start make changes and push it. When I compare my changes with base file (recent version of abc) some new changes are found and that new changes are required for our project. I do not want to replace their changes But how can I merge my changes

git pull merges no files if any of the deltas are conflicted (need manual merge)

青春壹個敷衍的年華 提交于 2019-12-25 02:41:19
问题 Please consider this scenario: I made a change of X number of files, pushed into Gerrit Joe makes a change of Y number of files, Z of which intersect with my change set Joe's code review gets approved and gets merged into the remote branch, mine gets held in the code review stage Because Joe and myself changed a Z number of files simultaneously and his changes got approved before mine, I have to merge my changes into the Z files that Joe changed also I am in the same git branch I was in when

Move git repository from Github to Gerrit automatically

我的梦境 提交于 2019-12-24 19:02:04
问题 Need to push existing git repo to Gerrit however have issues doing this: remote: ERROR: missing Change-Id in commit message footer because repo did not contain .git/hooks/commit-msg . Now I have the script installed, however need to change hundreds of commit messages to add Change-Id everywhere. How to make it automatically in the best and easiest way? Possible solutions: I see some topics here suggest to use git rebase -i , however it is interactive and mostly manual process. Others to use

gerrit + repo vs git + reviewboard

江枫思渺然 提交于 2019-12-24 18:19:06
git:代码版本管理工具 repo: 对git的封装。多个git库同时管理工具。 gerrit:代码审核工具。使用gerrit,必须使用repo 三者各自功能 git,版本管理库,在git库中没有中心服务器的概念,真正的分布式。 repo,repo就是多个git库的管理工具。如果是多个git库同时管理,可以使用repo。当然使用gerrit,就必须用repo。 gerrit,提交审核代码,图形化的界面,简单的操作 Review Board是程序员节约时间、资金和精力的代码审查好工具。语法高亮的代码,可便于更快读取。 来源: CSDN 作者: 糟心的事太多,唯有写作可以解忧! 链接: https://blog.csdn.net/weixin_44124323/article/details/103684203