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

Re: author of a file

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2003-05-16 10:58:24 CEST

On Thu, May 15, 2003 at 09:14:24PM +0200, Robert wrote:
> Ok.
> I wrote:
> #! /usr/bin/perl
> for($count = 1; $count <= 40; $count++)
> {
> system ("svn propset --revprop -r $count svn:author 'welz'
> }
> It gave me:
> property `svn:author' set on repository revision '1'
> ...
> property `svn:author' set on repository revision '40'
> but svn log http://localhost:65535/svn/repos/

You set the prop on .../svn/repos/root, but you're looking for it on

I think the BUG here is that svn propset --revprop returns success when
the item mentioned does not exist. (I have not tested this. It just
seems likely based on the messages in this thread.)

There is another related issue (maybe a BUG.) svn propdel returns
success when deleting a non-existant prop from some file/directory.
Maybe this should be an error or generate a warning?

To answer the question of how to set the svn:author prop on all
revisions of all files on which it is not set, a script will have to be
written to use svn log -v to get a list of all revisions and all files
that changed in those revisions. It will then have to run svn ps
--revprop -r $rev $node on each one in turn. (I assume you're the only
one who has ever committed anything to this repository.)

Otherwise, svnadmin dump the repository, make the necessary changes in
the dump file (remembering to update the prop value length and the
content lengths) and then svnadmin load it into a new repository.

Michael Wood <mwood@its.uct.ac.za>
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri May 16 10:59:27 2003

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.