Are there any alternatives to svn_load_dirs.pl?

我只是一个虾纸丫 提交于 2019-12-21 02:51:15

问题


We have a large vendor branch (1200 odd files) that has recently undergone some non-trivial changes, which I'd like to integrate back into the trunk. It updates fairly frequently and we'll need to update equally frequently, so doing it by hand is going to involve far too much wasted time.

This is what svn_load_dirs.pl was made for, only I've no perl interpreter and going through the the layers of bureaucracy to get one installed would, based on past experience, take longer and involve more pain than doing the merge by hand each time.

We do have a python interpreter, and svn_load would do the job nicely. Only rather than using the SVN CLI it uses pysvn directly, which isn't installed. See above: do not pass go, do not collect £200.

I realise it's unlikely, but anyone know of any other alternatives?


回答1:


You can import the new version to a different directory and then do a 3-URL-merge with --ignore-ancestry.

explained in more detail:

your old version of your vendor branch resides in

/vendor_0.1.1

you import the new version to:

/vendor_0.1.2

you can then merge them to your working copy which is pointing to your working version:

svn merge --ignore-ancestry <URL>/vendor_0.1.1 <URL>/vendor_0.1.2 <PATH_TO_WC>

By doing this, you will compare both versions and apply the difference to your working copy.

Be aware:

As you always import the full version of your vendor branch, Your repository will grow faster



来源:https://stackoverflow.com/questions/1322268/are-there-any-alternatives-to-svn-load-dirs-pl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!