[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

checking directory existence in a working copy

From: Giuseppe Scelsi <giuseppe.scelsi_at_analog.com>
Date: 2005-08-18 09:26:26 CEST

Hi all,

I have started moving to subversion from CVS not long ago and I am still
trying to find the best way of doing a few things using the available
svn commands. Today I bumped into a problem that I wasn't able to
solve, probably because my lack of familiarity with svn.

Assume a repository structure:

      +- a
         +- file1
         +- file2
         +- subdir
              +- file3

Assume I check out a working copy doing

    svn co --non-recursive svn://.../trunk/a my-dir

I will get:

      +- a
         +- file1
         +- file2

and no copy of "subdir", as requested. Now, I could find no way of
finding out using svn commands if the working copy contains all the
directories that are present in the repository.

For example, I would expect "cd my-dir; svn st -u" to print a list of
the missing directories, in the example above something like
"! a/subdir", but instead it stays totally silent.

Same for "svn update", it does not create missing directories, unless
thay have been first checked out and then deleted without using "svn
rm", or if they have been added to the repository after the working copy
was checked out. But if they haven't been checked out at the time when
the working copy was first created I could not find any way of getting
svn to show me the missing ones later, other than manually comparing the
outputs of "svn ls" and "ls" directory by directory.

Help appreciated.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 18 12:25:35 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.