Re: Checking out parts of a repository
From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 13 Aug 2008 11:32:18 -0400
Thanks for the question and answer. I was about to ask this very same
$ svn co -N http://subversion/dev/modules/adapter
wasn't working because it didn't checkout anything since there were no
However, the --depth parameter worked like a charm. I first checkedout
$ svn co --depth=immediates http://subversion/dev/modules/adapter
That got the trunk, branches and tags directory with no files in them.
$ cd trunk
That checked out the entire trunk. I had to use --depth=infinity, or
I then cd to the branches directory and did this:
$ cd ../branches
By just specifying the branch I needed, I did not need to add the
Now, I have the adapter module checked out in trunk and in the
If I change the build.xml file in both trunk and ADAPTER-1.4, I get
cd ../../adapter
So, Subversion is able to find all the changes in the trunk and
$ svn info
$ cd branches
Notice the "Depth" reported is still set to "immediates" and "empty"
-- David Weintraub qazwart_at_gmail.com On Wed, Aug 13, 2008 at 10:35 AM, Benjamin Smith-Mannschott <bsmith.occs_at_gmail.com> wrote: > > On Aug 13, 2008, at 16:18, Robert Jones wrote: > >> Is it possible to check out several parts of repository, but still handle >> them as a single checkout, eg >> >> top/dir1/... >> top/dir2/... >> top/dir3/... >> top/dir4/... >> >> Now, all of these are big, and I know my changes will only affect dirs 2 & >> 4, >> but these changes are linked, so I do want to commit my changes as a >> single commit. >> >> I know I could descend into dir2 and pull out part of the repository, and >> the same in dir4, but then at the 'top' level there would be no connection >> between them. >> >> So, can I be at the 'top' level, and just checkout dirs 2 & 4, and then >> subsequently >> commit changes in both dirs in one commit? >> >> - Rob. > > Sparse checkouts (new in 1.5), perhaps? > > http://subversion.tigris.org/svn_1.5_releasenotes.html#sparse-checkouts > > http://svnbook.red-bean.com/nightly/en/svn.advanced.sparsedirs.html > > // Ben > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org > For additional commands, e-mail: users-help_at_subversion.tigris.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org For additional commands, e-mail: users-help_at_subversion.tigris.orgReceived on 2008-08-13 17:32:52 CEST |
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.