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

[PATCH] Bumped, svncopy.pl externals tag fix

From: Jacob Atzen <jacob_at_aub.dk>
Date: 2006-04-06 08:26:27 CEST

Hi list,

I sent this on the 26th. of march but noone has replied, so I'm going to
try once more.

Log message:

[[[
Fix svncopy.pl to handle externals pinned with -rX instead of -r X

* contrib/client-side/svncopy.pl.in
  (UpdateExternalsOnDir) Change regexp to handle alternate revision
  format for externals in the source
]]]

Description:

I've been bitten by a bug in the svncopy.pl utility. The problem is that
if you have pinned an external in your trunk svncopy.pl expects
svn:externals to be formatted like:

        foo -r 10 http://path/to/foo

But the documentation[1] suggests a format of:

        foo -r10 http://path/to/foo

The consequence is that svncopy.pl will not pin externals in the tag as
it's supposed to if the latter format has been used in the trunk.

The patch is a simple extension to the regexp that analyses the
externals making the space between "-r" and the revision optional.

[1]: <http://svnbook.red-bean.com/nightly/en/svn.advanced.externals.html>

-- 
Cheers,
- Jacob Atzen


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

Received on Thu Apr 6 08:27:05 2006

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.