What is the default behaviour of an svn update
command on a parent that has a switched child, more precisely, what is the effect on the switched child?
For instance:
trunk/
trunk/child1/
trunk/child2/ <- switched to branch/myBranch/child2/
In this situation branch/myBranch/
is a copy of trunk/
(done with Copy within repository...
).
If I do a svn update
on trunk/
, will child2/
be updated to the HEAD
revision of myBranch
or will it be left untouched?
I thought it would have been left untouched, and assumed that for years, but I recently noticed that my switched directory was also updated in the process. I'm wondering if I was assuming wrong, or if there was a bug with my client.
The SVN book at red-bean is mute on that subject.
My client is SmartSVN 7.6.3 (build #69).
Thanks all for the input.
It will be updated against its switched directory. This is the desired feature. That way you can build your working directory tree based on various branches.
The command
will indicate you that an item have a switched URL with a 'S' in the fifth column. And the command
will show you against wich repository your working file or directory will be synchronized with.