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

Re: modifying svn:externals for an old revision

From: Larry Martell <larry.martell_at_gmail.com>
Date: 2007-04-04 01:41:21 CEST

On 4/3/07, Ryan Schmidt <subversion-2007b@ryandesign.com> wrote:
> On Apr 3, 2007, at 16:22, Larry Martell wrote:
>
> > Is there any way I can modify the value of svn:externals for an
> > old revision? I'm looking for something akin to --revprop that
> > would work on svn:externals.
>
> svn:externals are a versioned property, so the "only way" to change
> them is to check out a working copy, change it, and commit a new
> revision.
>
> I say "only way" in quotes because there is another option which
> involves dumping the repository to a text file and modifying the
> external references in the dumpfile, then loading it into a new
> repository. Everyone who had working copies would probably have to
> throw them away and check out new ones. A script was posted yesterday
> to perform such dumpfile changes for you:
>
> http://svn.haxx.se/users/archive-2007-04/0023.shtml

Thanks much for the link to this script (and thanks to Ben Smith-Mannschott
for writing it) - it looks like it could be very useful.

After much discussion it was decided not to try and do this. Our situation is
this: we currently have our svn:externals set to have a specific
revision number.
This is so that when a developer checks out a certain version of the project
they get the specific version of the externals that goes along with the version
of the project they got. But all the versions prior to when we started
doing this
have no -r specified in svn:externals. So when a user pulls one of these older
versions they get the latest and greatest version of the externals, which often
do not work with the old version of the project. Our plan was to
modify svn:externals
for the old versions to have the appropriate -r specified. Instead we
decided to
deal with this procedurally - the developers were all told that if
they update to a
revision <=n then they need to explicitly update all the externals to the same
revision. It would be better if it was automated, but the thought of
mucking around
with the dump file was just too scary for my manager to accept.

-larry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 4 01:41:48 2007

This is an archived mail posted to the Subversion Users mailing list.