Re: Creating sparse working copy retroactively from existing disjoint working copies
From: Robert Whitaker <capnwhit_at_yahoo.com>
Date: Thu, 16 Aug 2012 09:32:39 -0700 (PDT)
> From: Johan Corveleyn <jcorvel_at_gmail.com>
Hello Johan,
Thanks for the reply... I tried using "immediates" but it did not work...
==========
---o---
$ svn status /svn-test-2/mom/
$ # Try Johan's suggestion
$ svn update --depth immediates /svn-test-2/mom/daughter
$ svn status /svn-test-2/mom/
$ # Ooops... the "svn status" command still fails as shown above
$ # Now try --set-depth
$ svn update --set-depth immediates /svn-test-2/mom/daughter
$ # Now try --set-depth with --force flag
$ svn update --set-depth immediates --force /svn-test-2/mom/daughter
$ # NOTE 1: svn recognizes "granddaughter1" is versioned
$ # NOTE 2: svn still fails to connect to "daughter"
$ # NOTE 3: We still have a problem!
==========
---o---
$ svn status /svn-test-3/mom/daughter/granddaughter1
$ # Confirm "daughter" still not linked to "granddaughter1"
$ svn status /svn-test-3/mom/daughter
$ # Move "granddaughter1" directory to fool svn
$ mv /svn-test-3/mom/daughter/granddaughter1 /svn-test-3/
$ svn status /svn-test-3/mom/daughter
$ # The "daughter" directory is now OK as shown by "svn status" above
$ # The "daughter" directory is empty because we moved "granddaughter1"
$ ls -al /svn-test-3/mom/daughter/
$ # Now repeat STEP 10 in original email with "--depth infinity"
$ svn update --depth infinity /svn-test-3/mom/daughter/granddaughter1
$ # It works as expected
$ # The "daughter" and "granddaughter1" are now connected
$ svn status /svn-test-3/mom/daughter
$ # Now we remove the recently added "granddaughter1"
$ rm -rf /svn-test-3/mom/daughter/granddaughter1/
$ # Verify that svn recognizes missing directory
$ svn status /svn-test-3/mom
$ # Now we move back the safe "granddaughter1"
$ mv /svn-test-3/granddaughter1/ /svn-test-3/mom/daughter/
$ # Now svn recognizes the original "granddaughter1"
$ svn status /svn-test-3/mom
$ # NOTE 1: We can "hack" svn into connecting "granddaughter1"
$ # NOTE 2: It would be nice to have an official way to do this
|
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.