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

RE: externals, present and future

From: Ian Brockbank <Ian.Brockbank_at_wolfsonmicro.com>
Date: 2004-09-29 17:02:23 CEST

HI Patrick,

> I'm trying to understand fully whether or not I can do the following
> using svn:externals as they are today, and if not, whether there are
> plans for svn:externals that will make this possible in the future.
> I've looked through the svn book, the mailing list archives, and the
> issue tracker, and I still don't feel I have a complete picture, so I
> am turning this over to the list.
>
> I would like to set up a repository as follows:
>
[...]
>
>
> The directories under /projects would have svn:externals set so that
> the appropriate libs from /components get checked out underneath the
> specific project you checkout. So for instance,
>
[...]
>
> This, I believe, is already possible with the current implementation
> of svn:externals.

Correct (although if you do a co -rNNN or an update -rNNN the externals
will still use HEAD, so not completely what you'd expect).

> Additionally:
> (1) I want to be able to tag/branch the working copy in one fell
> swoop, so if I did (while in proj1 dir of the working copy above)
>
> svn copy proj1 tags/proj1-first-rocked-here
>
> then at some later date,
>
> svn checkout http://svn.example.com/repos/tags/proj1-first-rocked-here
>
> I would get the same contents of the working copy diagrammed above
> when the tag/branch copy was made (or the last contents commited to
> the branch, in the case of a branch).
>
> (2) I want to be able to do atomic commits on the entire working copy
> in one fell swoop, such as (while in proj1 dir of the working copy
> above)
>
> svn commit --message 'Proj1 now rocks the free world!'
>
>
> Is (1) or (2) above currently possible? If not, is that sort of
> functionality in the works?

(1) Partially possible using svncopy.pl from
http://svn.collab.net/repos/svn/trunk/contrib/client-side/svncopy.pl.in
- you can tag and it will behave as expected (svncopy.pl --tag). To
branch and get the behaviour you will need to branch the destinations of
the svn:externals at the same time (i.e. in the same command).

(2) Not possible at present. In fact, svn commit doesn't walk the
externals so you have to check them in separately.

Cheers,

Ian Brockbank
Senior Applications Software Engineer
e: ian.brockbank@wolfsonmicro.com / apps@wolfsonmicro.com
scd: ian@scottishdance.net
t: +44 131 272 7145
f: +44 131 272 7001

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 29 17:02:16 2004

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.