0

我问一个同事,我认为如果他有一个开源项目的补丁,只需将它发送给项目的管理员,我认为会更好,但他想要一个立即的解决方案,我不想转换外部存储库。

那么,当您签出或更新存储库时,有什么方法可以设置 SVN 来修补外部存储库中的文件?

4

1 回答 1

1

No. It's not possible to run a hook on checkout or update... so svn isn't going to be able to directly apply your patch.

I know you mentioned you don't want to convert your svn:external to an internal repo... However I'd most likely to go that route. The red book has a solid article on vendor branches. Hopefully the patch your coworker submits will be in the next release of the library, so you won't incur a cost updating to that new release and reapplying your patch - you could just go back to an svn:external at that point.

If that's not workable, other things that come to mind: having the build script apply the patch, or patch & build the library and publish it to an artifact repository (nexus or archiva) and having the team resolve the dependency from there.

于 2012-02-15T18:54:42.000 回答