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

Re: Using svn:externals

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: 2007-09-10 22:52:05 CEST

On 9/10/07, Ryan Schmidt <subversion-2007b@ryandesign.com> wrote:
> On Sep 10, 2007, at 12:49, Hari Kodungallur wrote:
> > On 9/10/07, Rob Wilkerson wrote:
> >
> >> I've spent a lot of time looking and there's a lot of material out
> >> there, but either it doesn't cover my situation or I'm not informed
> >> enough to recognize the correlation. That's my attempt at an apology
> >> if my question has an obvious answer. :-)
> >>
> >> I have a set of code that needs to be shared across existing projects
> >> and also with future projects whose project directories haven't yet
> >> been created (I have one repository with many top level project
> >> directories). Essentially, every new project directory needs to
> >> include these same external directories. Is there any way to
> >> automate
> >> this? Once the project is identified, I create the project directory
> >> by importing a directory "template" that includes the /branches, /
> >> tags
> >> and /trunk directory.
> >>
> >> Is it possible to somehow attach the external directories to the
> >> trunk
> >> without another step to my process?
> >
> > I do not know of any method that automates the setting of
> > svn:externals for newly created projects. It would have been nice
> > if we could use auto-props to set svn-externals [May be we can do
> > it, but I have never tried it.. I always thought you need an
> > SVN_EDITOR to set the externals].
> You don't need to use an editor to set externals or any other
> property; you can "svn propset" at the command line.
> However, auto-props cannot be used to automatically set
> svn:externals, because svn:externals needs to be set on a directory
> (not a file), and auto-props only works with files (not directories);
> see:
> http://subversion.tigris.org/issues/show_bug.cgi?id=1989
> (Though a patch is provided there to implement this feature.)

I did not know that the autoprops works only on files and also that we can
just use the pset command line to set svn:exteranls -- even though I have
been setting them (using editor) for a long time :( I tried it out just
after sending the email and I confirmed that it works on the command line.
Thanks for the info.

-Hari Kodungallur
Received on Mon Sep 10 22:49:25 2007

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.