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

Re: Propset and externals

From: Tj Warren <tj_at_sage-inc.com>
Date: 2005-02-23 16:27:34 CET

    common.h and init.h are actually directories with nothing more than
the single file represented by the directory name. (e.g;
/common.h/common.h ) The reason for this is that the common repo is
protected in the fact that only the head developer has write access to
it. We don't want just any developer changing header files. Easy enough
fix. :)

    The name of the external is irrelevant. This is just to keep things
simple and that we know what headers are common and what headers are
pulled from the common repo.

    The problem we are facing is we have a large repo that has many
projects within it and each project has different externals that need to
be pulled depending on the project.

    We made up this batch file after redesigning the tree a bit and
created this batch file to assist with creating the externals, but they
aren't exporting correctly. Is there a way to tell where it is dying? or
am I missing a bigger picture?

Thanks again -

Tj Warren - System Administrator - 806.354.8185 - tj@sage-inc.com -
http://www.sage-inc.com
------------------------------------------------------------------------

Dale Worley wrote:

> Perhaps because you've instructed Subversion to name all of these
> externals "./externals"? One would usually construct an svn:externals
> property to look like this:
>
> dir1 svn://.../dir1
> dir2 svn://.../dir2
>
> Also, it seems like you are trying to insert each file (common.h,
> init.h, etc.) individually as an external item. This may not even
> work (since they are not directories, and the entries in svn:externals
> used to be confined to being only directories), but also it seems
> inefficient. Why not use
>
> common svn://192.168.0.180/svn/linux/bh.1/source/common
>
> Dale
>
> -----Original Message-----
> *From:* Tj Warren [mailto:tj@sage-inc.com]
> *Sent:* Wednesday, February 23, 2005 9:47 AM
> *To:* users@subversion.tigris.org
> *Subject:* Propset and externals
>
> I have a batch file >>
>
> --snip
> #!/bin/sh
> svn checkout svn://192.168.0.180/svn/linux/bh.1/source/config
> echo "externals
> svn://192.168.0.180/svn/linux/bh.1/source/common/common.h" >prop
> echo "externals
> svn://192.168.0.180/svn/linux/bh.1/source/common/init.h" >>prop
> echo "externals svn://192.168.0.180/svn/common/getline.h" >>prop
> echo "externals svn://192.168.0.180/svn/common/md5.h" >>prop
> echo "externals svn://192.168.0.180/svn/common/user.h" >>prop
> svn propset svn:externals -F prop config
> svn commit config -m "externals"
> rm config -rf
> --snip
>
>
> This creates all the links, but when anyone does a checkout they
> actually only get the last extern?
>
> Any suggestions?
>
> *note - the path /svn/common/user.h is actually a directory, not a
> file
>
> Thanks in advance
>
> --
> Tj Warren - System Administrator - 806.354.8185 - tj@sage-inc.com
> - http://www.sage-inc.com
> ------------------------------------------------------------------------
>
Received on Wed Feb 23 16:31:10 2005

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.