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

[PATCH] svncopy.pl externals tag fix

From: Jacob Atzen <jacob_at_aub.dk>
Date: 2006-03-26 16:23:55 CEST

Hi list,

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 Sun Mar 26 16:24:17 2006

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