[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: R. Welz <r_welz_at_gmx.de>
Date: 2003-05-17 14:03:34 CEST

Ok.
I am running Apache2 and svn on OS X.2.5 on an Apple Mac G4.

#! /usr/bin/perl
# Changes "Author" in svn logs
# for revision 1 - 40
# Robert
# 15.5.03

for($count = 1; $count <= 2; $count++)
{
        system ("svn propset --revprop -r $count svn:author 'dummy'
http://192.168.1.10:65535/svn/repos");
}
# dummy has a valid entry made with htpasswd

[Robert-Welzs-G4:~/tmp/tmptmp] welz% /Users/welz/subversion\
scripts/changerevprops.perl
property `svn:author' set on repository revision '1'
property `svn:author' set on repository revision '2'
[Robert-Welzs-G4:~/tmp/tmptmp] welz% svn log
http://localhost:65535/svn/repos/

------------------------------------------------------------------------
rev 2: welz | 2003-05-16 12:35:58 +0200 (Fri, 16 May 2003) | 1 line
------------------------------------------------------------------------
rev 1: welz | 2003-05-16 12:35:38 +0200 (Fri, 16 May 2003) | 1 line

svn proplist --revprop --verbose -r 1 http://localhost:65535/svn/repos/
Unversioned properties on revision 1:
   svn:log :
   svn:author : welz
   svn:date : 2003-05-16T10:35:38.314720Z

svn propget svn:author --revprop -r1 http://localhost:65535/svn/repos/
welz #this should be dummy

AND WITH

<snip> svn:author 'new' <snip> where 'new' has no htpasswd entry and
therefore is no valid user:
[Robert-Welzs-G4:~/tmp/tmptmp] welz% /Users/welz/subversion\
scripts/changerevprops.perl
property `svn:author' set on repository revision '1'
property `svn:author' set on repository revision '2'
[Robert-Welzs-G4:~/tmp/tmptmp] welz% svn log
http://localhost:65535/svn/repos/

------------------------------------------------------------------------
rev 2: welz | 2003-05-16 12:35:58 +0200 (Fri, 16 May 2003) | 1 line
------------------------------------------------------------------------
rev 1: welz | 2003-05-16 12:35:38 +0200 (Fri, 16 May 2003) | 1 line

------------------------------------------------------------------------
------------------------
/Volumes/Datenquelle/subversion_cvs_repository/hooks/pre-revprop-change
#!/bin/sh
<snip>
REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"

if [ "$PROPNAME" = "svn:log" ]; then exit 0; fi
exit 1

Am Samstag, 17.05.03 um 12:50 Uhr schrieb Branko ╚ibej:
> Can you show us your pre-revprop-change hook script?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 17 14:04:29 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.