Suggest --parents for deep 'svn update --set-depth' command
The official documentation of the Subversion version control system
Brought to you by:
cmpilato,
danielshahaf
David Johnston (David.Johnston@nuance.com) wrote:
I ran into one confusion when trying to implement the ideas described
in the sparse directories chapter - svn.advanced.sparsedirs.html
I did not know that under svn it is not possible to use update to set the
depth of any directory that was not the child of an existing one in the
working copy.
Thus
svn checkout file:///var/svn/repos mom-empty --depth empty
svn update --set-depth infinity mom-empty/daughter/granddaughter1
will fail, instead of creating just the granddaughter1 branch of daughter.
Pavel Lyanyakin (pavel.lyalyakin@visualsvn.com) replied:
Have you tried adding `--parents` to this command line? E.g. run
[[[
svn update --parents --set-depth infinity mom-empty/daughter/granddaughter1
]]]]
I guess that this way Subversion client add the parent directories to the
working copy and you won't need to add them manually.
Seems like something the book should suggest.