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

Re: partial branch?

From: Peter Davis <peter_at_pdavis.cx>
Date: 2002-11-06 05:02:00 CET

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 05 November 2002 19:19, Brian Olson wrote:
> Is it currently possible to make a partial branch?

I haven't actually tried this, but what about using svn:externals to load
other parts of the same repository into the working directory?

$ svn cp http://server/trunk http://server/branch/foo
$ svn switch http://server/branch/foo
$ ls
bar/ baz/
$ svn rm baz
$ svn pset svn:externals "baz http://server/trunk/baz" .
$ svn ci
$ svn up

Now ./bar/ will be local to the branch, and ./baz/ will be a "soft link" to
the real /trunk/baz/ directory. Any commits to ./baz/ will affect
/trunk/baz/, and commits to ./bar/ will affect /branch/foo/bar/. Make sense?

Note that svn:externals only affects the working copy, so for URL-based
operations to ./baz/ you will have to use /trunk/baz/, not /branch/foo/baz/.
Outside of the working copy, /branch/foo/baz/ won't exist (it was deleted).

- --
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9yJQ4hDAgUT1yirARAmCHAKCONsq2JS3wl+c7AR8Gb6d945rO4wCeOUy+
7NsOafTUVpYT4l5YelMG/qQ=
=/oM6
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 6 05:02:53 2002

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.