开发者

how to merge specfic file using svn command

开发者 https://www.devze.com 2023-04-10 21:25 出处:网络
Is there any way to merge a specific set of extesnion using merge command between two branches eg:- i want to merge only \".jsp\" extension or any extension of my choice

Is there any way to merge a specific set of extesnion using merge command between two branches eg:- i want to merge only ".jsp" extension or any extension of my choice

svn merge 开发者_运维百科https://www.test.com/branches/a1/*.jsp  https://www.test.com/branches/a2/*.jsp


If you have a local copy, then you can write a shell command with a for loop to issue a separate svn merge for each file, something like

for i in *.jsp; do
    svn merge https://www.test.com/branches/a1/$i  https://www.test.com/branches/a2/$i
done


Just merge everything to your working copy, then revert every modified/added/removed file that is not a .jsp file, and commit.

0

精彩评论

暂无评论...
验证码 换一张
取 消