UI恢复到较旧的补丁集版本

UI恢复到较旧的补丁集版本

本文介绍了通过Gerrit UI恢复到较旧的补丁集版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果Gerrit的一项更改有多个补丁程序版本,则似乎只能提交最新的补丁程序版本(因为只有一个具有必要的按钮).是否有一种简单的方法,而只使用我的Gerrit实例上的Web浏览器来提交相同更改的旧补丁集版本?

If I have multiple patch set versions for one change in Gerrit, it seems like I can only submit the latest patch set version (because only that one has the necessary button). Is there an easy way to instead submit one of the old patch set versions of the same change, using only my web browser on that Gerrit instance?

我知道我可以从git客户端获取所需的补丁集版本,并将其作为另一个新的补丁集版本推送到顶部,但是我想避免在审查中多次使用相同的补丁集版本,围绕它进行讨论.

I know that I can fetch the wanted version of the patch set from my git client and push it as yet another new patch set version on top, but I would like to avoid having identical patch set versions multiple times in the review and discussion around it.

推荐答案

不,抱歉,目前无法实现.该设计假定最新的补丁集是开发人员将检查和测试的补丁集,因此无法提交较旧的补丁集.也无法对其进行审核/验证.如果要使用较旧版本的补丁程序集,则必须重新提交它以使其成为最新的补丁程序集.为了避免没有新的更改错误,请执行git commit --amend,并且git将创建一个新的sha1,它将被Gerrit欣然接受为新的补丁集.

No, sorry, this is not currently possible. The design assumes that the most recent patch set is the one developers will review and test, and as such older patch sets can not be submitted. They also can not be reviewed/verified. If you want to use an older version of a patch set, you must re-submit it to make it the most recent patch set. To avoid no new changes error do git commit --amend and git will create a new sha1, which will be happily accepted by Gerrit as a new patch set.

这篇关于通过Gerrit UI恢复到较旧的补丁集版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 20:05