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

Non-recursive checkout is broken?

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-11-24 01:07:17 CET

After a non-recursive checkout (which gets all of the files but none of the subdirectories) I have not managed to get a subdirectory from the repository into my WC. I tried "svn update subdir" and "svn copy URL subdir" and "svn checkout URL subdir". The test script is attached, and the output, starting from after the checkout, is shown below.

I would expect that "status -vu" would show that the subdirectory would be added by an update, either by marking the parent entry (".") with an asterisk or by showing a status entry for "subdir" with an asterisk.

+ svn list -vR
      1 julianfo 6 Nov 15 15:54 file
      1 julianfo Nov 15 15:54 subdir/
      1 julianfo 6 Nov 15 15:54 subdir/file
+ svn status -vu
                1 1 julianfoad .
                1 1 julianfoad file
Status against revision: 1

+ svn update subdir
svn: warning: svn_wc_is_wc_root: 'subdir' is not a versioned resource

+ svn copy file:///home/julianfoad/tmp/incomplete-wc/repos/subdir .
/home/julianfoad/src/subversion/subversion/libsvn_wc/lock.c:165: (apr_err=155004)
svn: Attempted to lock an already-locked dir
svn: working copy locked: .
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

+ svn checkout file:///home/julianfoad/tmp/incomplete-wc/repos/subdir
/home/julianfoad/src/subversion/subversion/libsvn_wc/lock.c:600: (apr_err=155005)
svn: Working copy not locked
svn: directory 'subdir' not locked

Each of "copy" and "checkout" creates a directory "subdir" and "subdir/.svn", but does not integrate it into its parent or populate it. The WC is not reported as Locked before or after these attempts.

I am not saying that all three of these methods should be valid ways to get the subdirectory, but I think at least "copy" and/or "update" should be. Perhaps I'm not trying the right way?

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Mon Nov 24 01:05:14 2003

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

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