Bo Berglund
2018-11-06 20:11:16 UTC
I have a project where I want to commit the modified sources in the
top folder but want to prevent it from recursing to subdirectories,
which hold the compiled binaries. These are only to be committed when
the sources are stable.
I looked at svn ci with the --depth argument, but I do not understand
the wording of the docs:
http://svnbook.red-bean.com/en/1.7/svn.ref.svn.html#svn.ref.svn.sw.depth
it says:
--depth ARG
Instructs Subversion to limit the scope of an operation to a
particular tree depth. ARG is one of empty (only the target itself),
files (the target and any immediate file children thereof), immediates
(the target and any immediate children thereof), or infinity (the
target and all of its descendantsfull recursion).
The problem I have is in the definition of "target"...
I am doing the operation inside the top level of the WC tree (where
the .svn dir is located).
The command will be:
svn ci --depth <argument>
What should I use as argument so that only the changed files in the
current dir are committed?
empty does not work for me because the dir is NOT empty
files does not work because I don't understand what "file children" is
immediates clearly would include subdirs too?
infinity not what I want, full recursion...
Tried to google but I only get hits that deal with the opposite, how
to exclude file commit.
I want to block recursion into subdirectories...
top folder but want to prevent it from recursing to subdirectories,
which hold the compiled binaries. These are only to be committed when
the sources are stable.
I looked at svn ci with the --depth argument, but I do not understand
the wording of the docs:
http://svnbook.red-bean.com/en/1.7/svn.ref.svn.html#svn.ref.svn.sw.depth
it says:
--depth ARG
Instructs Subversion to limit the scope of an operation to a
particular tree depth. ARG is one of empty (only the target itself),
files (the target and any immediate file children thereof), immediates
(the target and any immediate children thereof), or infinity (the
target and all of its descendantsfull recursion).
The problem I have is in the definition of "target"...
I am doing the operation inside the top level of the WC tree (where
the .svn dir is located).
The command will be:
svn ci --depth <argument>
What should I use as argument so that only the changed files in the
current dir are committed?
empty does not work for me because the dir is NOT empty
files does not work because I don't understand what "file children" is
immediates clearly would include subdirs too?
infinity not what I want, full recursion...
Tried to google but I only get hits that deal with the opposite, how
to exclude file commit.
I want to block recursion into subdirectories...
--
Bo Berglund
Developer in Sweden
Bo Berglund
Developer in Sweden