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

Re: Vendor branches: Current guidance?

From: Andreas Krey <a.krey_at_gmx.de>
Date: Fri, 23 May 2014 08:53:35 +0200

On Thu, 22 May 2014 20:08:15 +0000, David DL wrote:
...
> It's my understanding that if you want the process to integrate a new vendor drop to be sane, the update ideally should be expressed as a series of "svn actions" (add/update/etc.) so that history is maintained.  
>
> The obvious option of just doing a delete/add on the whole folder will mess stuff up. 
>
>
> Is that correct? 

Yes. When you remove all the files and add them anew, svn will think
they are different files, and any attempt to merge that onto your own
modification will end in tears.

> If you don't use the client side tools, how can you maintain in-house changes against a series of vendor drops? 

You need to use some kind of tool to perform the file-wise
add/remove/modifiy commits. Core svn doesn't provide such, it's somewhere
in the contrib area. (It's not that hard to implement yourself, either.)

But the best tool I know for that is actually git-svn. Because, if the
vendor renames files in his tree, with the usual tools the rename will
not be recorded as such in the vendor branch. git-svn applies its rename
detection, and will handle that part better.

Andreas

-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800
Received on 2014-05-23 08:54:15 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.