Is Subversion's 'Lazy Copy' still lazy when overwriting a previously deleted file?

Posted by JW on Stack Overflow See other posts from Stack Overflow or by JW
Published on 2010-04-11T23:02:54Z Indexed on 2010/04/11 23:13 UTC
Read the original article Hit count: 196

Filed under:
|
|

Is Subversion's 'Lazy Copy' still lazy when overwriting a previously deleted file?

I store my externals in a separate folder for each version: i.e say for dojo I'd have:

 webroot\
  scripts\
   dojo-v-1.0.0\
   dojo-v-1.1.0\

etc. By doing this, for me at least, I feel it makes it easier to switch over to a new version.

By only adding each new version i am not really giving svn the history it needs to do lazy copies. So one tactic I have used is to

  • svn copy over the old version over to where the new one will be
  • then svn delete that whole folder
  • then unpack my newer version into that place
  • then svn add them

The idea is to avoid having a massive amount of duplicated data in my repo.

I hope svn is looking at the new files and saying,

"hey, i already had this once, copied, then deleted...so i am only going to be lazy store the changes".

That was my theory - but does that happen in practice?

p.s. Yes I know an alternative is to set the 'externals properties on the folder' - but that's another question.

© Stack Overflow or respective owner

Related posts about svn

Related posts about subversion