[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

答复: Can SVN pull request same as GIT?

From: Nathan <qianhaiyuan_at_hikvision.com>
Date: Mon, 3 Dec 2018 03:22:25 +0000

In the past, we used another way to implement functions similar to pull requests:



We make a pre-commit code review like this ( we named it as Force Review):

1.Before developer commit code, user can use ForceReview command to create an online code review. ForceReview command is a tool to upload patches and start review .

   It can work at working copy, command like this : ForceReview @ReviewerA @ReviewerB -m ${Subject}



2.Reviewer review the code , and complete it. In fact , user will change his code and iterative pre-commit review.



3.When code review completed, developer can use code review ID to commit his code. One ID can only commit his code one time.



SVN use a pre-commit to make sure the code has code reviewed:

1.First we will define which code need to code review. We use regular expression to match those code.

[cid:image001.png_at_01D48AF9.45E3BDF0]



2.Then pre-commit script will get the code review ID in log message. And to determine if the code is allowed to be commit.



[cid:image002.png_at_01D48AF9.45E3BDF0]





Best Regards!

Haiyuan Qian

R & D Management Group

Hangzhou Hikvision Digital Technology Co.,Ltd

No.555 Qianmo Road, Binjiang District, Hangzhou 310052, China

T (86571)88075998-20081

M (86)18969199712



本邮件及其附件含有海康威视公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!

This e-mail and its attachments contain confidential information from HIKVISION, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!





-----邮件原件-----
发件人: Daniel Shahaf [mailto:danielsh_at_apache.org]
发送时间: 2018年12月2日 0:07
收件人: users_at_subversion.apache.org
抄送: 钱海远(Nathan)
主题: Re: Can SVN pull request same as GIT?



Nico Kadel-Garcia wrote on Sat, 01 Dec 2018 09:25 -0500:

> On Sat, Dec 1, 2018 at 4:00 AM Stefan Sperling <stsp_at_elego.de> wrote:

> > Note that we use such a workflow in SVN itself: When we backport changes

> > to stable branches and a merge conflict occurs, we prepare a branch.

> > Voting happens in a file called STATUS, and once the change is approved,

> > a bot known as 'svn-role' will merge it. See the log here for example:

> > http://svn.apache.org/viewvc/subversion/branches/1.11.x/STATUS

>

> But that is a branch, with its changes recorded in the single upstream

> repository. There is no split brain between repositories to resolve.



Yes, that's exactly the point. The easiest way to implement a "pull

request" workflow in Subversion is to use multiple branches within

a single repository.



At the data model level, pull requests are feature branches. The

differences are in the surrounding social patterns and in tooling built

around the "pull request - review - merge" workflow. Such tooling could

be implemented on top of Subversion 1.1.0 (sic), and has been.



> The identity, contents, and order of every individual change is there

> already. Resolving that with the individual changes and change history

> of another repository is.... well, that's where I'd expect life to get

> both difficult and dangerous.



Using multiple repositories and porting commits between them amounts to

implementing a DVCS (such as git-svn) on top of Subversion. However, as

several people already pointed out, there's no need to be distributed in

order to support pull requests. One only needs to be able to pass

patches around; branches achieve that.



Cheers,



Daniel


________________________________
CONFIDENTIALITY NOTICE:

This electronic message is intended to be viewed only by the individual or entity to whom it is addressed. It may contain information that is privileged, confidential and exempt from disclosure under applicable law. Any dissemination, distribution or copying of this communication is strictly prohibited without our prior permission. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, or if you have received this communication in error, please notify us immediately by return e-mail and delete the original message and any copies of it from your computer system. For further information about Hikvision company. please see our website at www.hikvision.com<http://www.hikvision.com>

image001.png
image002.png
Received on 2018-12-03 04:33:56 CET

This is an archived mail posted to the Subversion Users mailing list.