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

RE: [PATCH] svncopy utility script with svn:externals

From: Ian Brockbank <Ian.Brockbank_at_wolfsonmicro.com>
Date: 2004-08-24 17:42:12 CEST

Hi All,

Since submitting that script I've discovered svn propget -R which
has allowed me to greatly improve the performance of the script.
I've also fixed a bug with handling of whitespace.

Since as far as I can tell the script hasn't been checked in, I
attach replacement versions.

I still welcome comments.

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
  

 

> -----Original Message-----
> From: Ian Brockbank [mailto:Ian.Brockbank@wolfsonmicro.com]
> Sent: 24 June 2004 15:59
> To: dev@subversion.tigris.org
> Subject: [PATCH] svncopy utility script with svn:externals
>
> Hi All,
>
> Not sure if this is really a patch - it's a submission of a new script
> for contrib/client-side.
>
> We use svn:externals, and have had problems with branching and tagging
> as a result - see issues 1258, 1336 and 1829.
>
> http://subversion.tigris.org/issues/show_bug.cgi?id=1258
> http://subversion.tigris.org/issues/show_bug.cgi?id=1336
> http://subversion.tigris.org/issues/show_bug.cgi?id=1829
>
> I have developed a script which does an svn copy and allows you to
> update the svn:externals in one of two ways to address tagging (1258)
> and branching (1829):
>
> --pin-externals or --tag
>
> Update any svn:externals to ensure they have a version number,
> using the current destination version if none is already specified.
> Useful for tagging operations.
>
> This implements 1258 (albeit in a script rather than the svn
> commandline).
>
> --update-externals or --branch
>
> Update any unversioned svn:externals which point to a location
> within one of the sources so that they point to the corresponding
> location within the destination.
>
> This implements 1829.
>
> I include the script, along with a test script I built up while
> developing the script.
>
> Note: this script is (almost) atomic - it does the work in a local
> working copy and then commits (although it creates intermediate
> directories directly in the repository, so there may be a couple of
> preparatory checkins). However, it can result in a large working copy
> and take a while...
>
> Suggestion: allow a checkout without following externals. This would
> save some time and space for this script (which is doing externals
> meta-work and so doesn't need the contents of the externals;
> in fact it
> explicitly ignores them).
>
> The scripts are attached (because I don't trust my mailer to leave my
> line-endings alone) - svncopy.pl.in is the script,
> testsvncopy.pl.in is
> the test.
>
> Comments, please.
>
> 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
>
>
>
>
> Wolfson Microelectronics plc
> www.wolfsonmicro.com
> T +44 131 272 7000
> F +44 131 272 7001
> Registered in Scotland 89839
>
> This message may contain confidential or proprietary
> information. If you receive this message in error, please
> immediately delete it, destroy all copies of it and notify
> the sender. Any views expressed in this message are those of
> the individual sender, except where the message states
> otherwise. We take reasonable precautions to ensure our
> Emails are virus free. However, we cannot accept
> responsibility for any virus transmitted by us and recommend
> that you subject any incoming Email to your own virus
> checking procedures.
>
> ______________________________________________________________
> __________
> This email has been scanned for all viruses by the MessageLabs Email
> Security System.
> ______________________________________________________________
> __________
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Tue Aug 24 17:42:29 2004

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.