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

Re: bulk update of attributes

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Mon, 18 May 2009 05:45:21 -0500

On May 18, 2009, at 03:10, webpost_at_tigris.org wrote:

> I need to bulk update some attributes (svn:author and
> svn:externals) for all versions within a number of repositories.

Just to be sure we're clear, svn:author is a revision (unversioned)
property, while svn:externals is a versioned property.

> I am currently considering dumping the repositories and working
> (via scripts) on the subsequent files. This would involve updating
> the values and associated 'V' counts. Once happy reloading on the
> new server. Does this sound sensible? Any pitfalls to be aware of
> (i.e. encoded data, check sums, etc)?

I recommend not reinventing the wheel when it comes to editing
dumpfiles. Though their format is not too difficult to understand,
why risk parsing something incorrectly and not realizing it until
after it destroyed all your repository history? Just use one of the
existing tools for this job. It sounds like svndumptool may do what
you need. I have used it before to make batch changes to
svn:externals and svn:author when I was migrating a project to Google
Code.

http://svn.borg.ch/svndumptool/

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2298512

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-18 12:46:58 CEST

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.