2

Say I create a branch of folder Master in my repository and make some commits to it.

I used TortoiseSVN's Create Branch command, which executes: svn copy FROMURL TOURL to create the branch on the server using the HEAD revision.

Later, the SVN administrator deletes the Master folder, but leaves my branch alone.

Since SVN branches are shallow copies, is my branch now corrupt, or does SVN smartly make a deep copy at the deletion of Master?

7
  • 1
    SVN isn't going to do anything you don't tell it to do.
    – Ramhound
    Apr 13, 2015 at 13:53
  • @Ramhound That isn't very helpful. Are you saying my branch will become corrupted (as it will be a series of revisions to files that no longer exist) or not?
    – Nick Udell
    Apr 13, 2015 at 14:29
  • @NickUdell, the first question is what command did you issue to create the branch?
    – heavyd
    Apr 13, 2015 at 14:32
  • I used TortoiseSVN's Create Branch command, which executes: svn copy FROMURL TOURL to create the branch on the server.
    – Nick Udell
    Apr 13, 2015 at 14:33
  • You ask if SVN creates a deep copy upon the deletion of Master. My response to that question is that SVN only does what you tell it to. So if you delete Master before you perform a deep copy then you won't have a deep copy of Master.
    – Ramhound
    Apr 13, 2015 at 14:37

1 Answer 1

3

Branch has a reference to a specific revision. Your branch should be safe. SVN uses references most of the time.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .