You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Robert <ro...@gmx.de> on 2003/05/15 17:41:23 UTC

author of a file

Hello all.
Now I have subversion 0.21.0 up and running.

Yesterday I configured authentification and now all my newly added 
files have an author visible in svn log.

But before that I experimented and added a lot of files without authent 
enabled. When I use svn log on them I see <no athor>.

I wanted to change the author but if I enter
svn propset --revprop Author "myName" 
http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
I get the propset syntax explanation screen.

Whats wrong with my command?

I even renamed
pre-revprop-change.tmpl to pre-revprop-change and restarted Apache.

Greetings,
Robert


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

Re: author of a file

Posted by Michael Wood <mw...@its.uct.ac.za>.
On Fri, May 16, 2003 at 01:16:59PM +0200, Robert wrote:
> 
> Am Freitag, 16.05.03 um 10:58 Uhr schrieb Michael Wood:
> <snip>
> 
> Thank you very much.

No problem, but Brane pointed out a mistake I made.  You would not have
to run svn ps --revprop on each file, since it's a revision prop, not a
file prop.  i.e. you just need to run it once per revision.

-- 
Michael Wood <mw...@its.uct.ac.za>

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

Re: author of a file

Posted by Branko Čibej <br...@xbc.nu>.
R. Welz wrote:

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

[snip]

> /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 


Well, well, well. Have you read this hook? :-)
Do read it, I'm sure you'll find the bug in the hook quickly.

There also seems to be a bug in mod_dav_svn or ra_dav, because it
doesn't propagate the hook exit code to the client. The code gets
propagated correctly in ra_local. Haven't tried ra_svn.

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


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

Re: author of a file

Posted by "R. Welz" <r_...@gmx.de>.
Hello.
I forgot to say that I use svn, version 0.21.0 (r5639).

Greetings,
Robert
Am Samstag, 17.05.03 um 14:03 Uhr schrieb R. Welz:

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


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

Re: author of a file

Posted by "R. Welz" <r_...@gmx.de>.
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


Re: author of a file

Posted by Branko Čibej <br...@xbc.nu>.
R. Welz wrote:

> Am Freitag, 16.05.03 um 20:32 Uhr schrieb kfogel@collab.net:
>
>> Ben Collins-Sussman <su...@collab.net> writes:
>
>
>> I think you might be misunderstanding the bug, Ben.
>>
>> This is 'log --revprop'.  The issue is not that nothing happened in
>> that revision (maybe many things happened), but rather that he used a
>> non-existent URL and it still succeeded -- because the URL still
>> "encompassed" the right repository, even though the path within the
>> repository doesn't exist.
>>
>> So if it's a bug, it's a rather mild one.
>
>
> Hi.
> ... but the result was the same even if I excecuted and gave root as URL:
> #! /usr/bin/perl
> for($count = 1; $count <= 40; $count++)
> {
>     system ("svn propset --revprop -r $count svn:author 'welz'
> http://192.168.1.10:65535/svn/repos/");
>     # or
>     # system ("svn propset --revprop -r $count svn:author 'welz'
> http://192.168.1.10:65535/svn/repos");
> }
>
>
> svn reports
>
> property `svn:author' set on repository revision '1'
> <snip> property `svn:author' set on repository revision '40'
>
> but the log still shows no athor:
> svn log http://localhost:65535/svn/repos/
>
> rev 2:  (no author) | 2003-05-08 15:44:14 +0200 (Thu, 08 May 2003) | 1
> line
> ------------------------------------------------------------------------
> rev 1:  (no author) | 2003-05-08 15:43:31 +0200 (Thu, 08 May 2003) | 1
> line


I can't reproduce this. Both propdel and propset of existing and
nonexistent revision property work for me, using either a WC path or an
URL. Can you show us your pre-revprop-change hook script?

(BTW, I tested this on Windows with a hook program, not a hook script).

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


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

Re: author of a file

Posted by "R. Welz" <r_...@gmx.de>.
Am Freitag, 16.05.03 um 20:32 Uhr schrieb kfogel@collab.net:

> Ben Collins-Sussman <su...@collab.net> writes:

> I think you might be misunderstanding the bug, Ben.
>
> This is 'log --revprop'.  The issue is not that nothing happened in
> that revision (maybe many things happened), but rather that he used a
> non-existent URL and it still succeeded -- because the URL still
> "encompassed" the right repository, even though the path within the
> repository doesn't exist.
>
> So if it's a bug, it's a rather mild one.

Hi.
... but the result was the same even if I excecuted and gave root as 
URL:
#! /usr/bin/perl
for($count = 1; $count <= 40; $count++)
{
	system ("svn propset --revprop -r $count svn:author 'welz' 
http://192.168.1.10:65535/svn/repos/");
	# or
	# system ("svn propset --revprop -r $count svn:author 'welz' 
http://192.168.1.10:65535/svn/repos");
}


svn reports

property `svn:author' set on repository revision '1'
<snip> property `svn:author' set on repository revision '40'

but the log still shows no athor:
svn log http://localhost:65535/svn/repos/

rev 2:  (no author) | 2003-05-08 15:44:14 +0200 (Thu, 08 May 2003) | 1 
line
------------------------------------------------------------------------
rev 1:  (no author) | 2003-05-08 15:43:31 +0200 (Thu, 08 May 2003) | 1 
line

But have a nice weekend!
Robert

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


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

Re: author of a file

Posted by Michael Wood <mw...@its.uct.ac.za>.
On Mon, May 19, 2003 at 11:11:44AM +0200, Branko ??ibej wrote:
                                                 ^^^^^^
> 

Sorry.  I don't know how to get mutt to fix this, and I have little
motivation to find out.

I wrote:
> >>>>$ svn ps svn:author 'blah' --revprop -r1 file://`pwd`/repos/non-existent
> >>>>property `svn:author' set on repository revision '1'
> >>>>
> >>>>Shouldn't this at least warn?  There is no
> >>>>file://`pwd`/repos/non-existent.

Ben Collins-Sussman <su...@collab.net> said:
> >>>This looks like an honest-to-goodness bug.  Nothing happened at all,

I said:
> >No, something DID happen.  It's just that it might not be what the
> >person intended, since they specified a non-existent file.

Brane said:
> No, nothing happened. But that's because his pre-revprop-change hook
> doesn't allow changes to svn:author. I diagnose this as a ra_dav bug,
> because the script error code doesn't get propagated to the client. It
> works just fine over ra_local.

Yes.  I was referring to Ben's comment about my reproduction recipe
which had nothing to do with ra_dav :)  I agree that nothing happened in
the case of the original poster.

-- 
Michael Wood <mw...@its.uct.ac.za>

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

Re: author of a file

Posted by Branko Čibej <br...@xbc.nu>.
Michael Wood wrote:

>On Fri, May 16, 2003 at 01:32:24PM -0500, kfogel@collab.net wrote:
>  
>
>>Ben Collins-Sussman <su...@collab.net> writes:
>>    
>>
>>>>$ svn ps svn:author 'blah' --revprop -r1 file://`pwd`/repos/non-existent
>>>>property `svn:author' set on repository revision '1'
>>>>
>>>>Shouldn't this at least warn?  There is no
>>>>file://`pwd`/repos/non-existent.
>>>>        
>>>>
>>>This looks like an honest-to-goodness bug.  Nothing happened at all,
>>>      
>>>
>
>No, something DID happen.  It's just that it might not be what the
>person intended, since they specified a non-existent file.
>
No, nothing happened. But that's because his pre-revprop-change hook
doesn't allow changes to svn:author. I diagnose this as a ra_dav bug,
because the script error code doesn't get propagated to the client. It
works just fine over ra_local.
-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


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

Re: author of a file

Posted by Michael Wood <mw...@its.uct.ac.za>.
On Fri, May 16, 2003 at 01:32:24PM -0500, kfogel@collab.net wrote:
> Ben Collins-Sussman <su...@collab.net> writes:
> > > $ svn ps svn:author 'blah' --revprop -r1 file://`pwd`/repos/non-existent
> > > property `svn:author' set on repository revision '1'
> > > 
> > > Shouldn't this at least warn?  There is no
> > > file://`pwd`/repos/non-existent.
> > 
> > This looks like an honest-to-goodness bug.  Nothing happened at all,

No, something DID happen.  It's just that it might not be what the
person intended, since they specified a non-existent file.

> > and yet it claims something did.  Yikes.  Can you file this?

I have enough identities already without creating a tigris.org one ;)
If someone else wants to file this, and maybe the "svn pretends to
delete non-existent file/dir props," they can go ahead.

By the other bug I mean:

$ svnadmin create repos
$ svn co file://`pwd`/repos wc
Checked out revision 0.
$ cd wc
$ svn propdel non-existent .
property `non-existent' deleted from ''.

[snip]
> So if it's a bug, it's a rather mild one.

The same goes for the other one.

-- 
Michael Wood <mw...@its.uct.ac.za>

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

Re: author of a file

Posted by kf...@collab.net.
Ben Collins-Sussman <su...@collab.net> writes:
> > $ svn ps svn:author 'blah' --revprop -r1 file://`pwd`/repos/non-existent
> > property `svn:author' set on repository revision '1'
> > 
> > Shouldn't this at least warn?  There is no
> > file://`pwd`/repos/non-existent.
> 
> This looks like an honest-to-goodness bug.  Nothing happened at all,
> and yet it claims something did.  Yikes.  Can you file this?

I think you might be misunderstanding the bug, Ben.

This is 'log --revprop'.  The issue is not that nothing happened in
that revision (maybe many things happened), but rather that he used a
non-existent URL and it still succeeded -- because the URL still
"encompassed" the right repository, even though the path within the
repository doesn't exist.

So if it's a bug, it's a rather mild one.


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

Re: author of a file

Posted by Ben Collins-Sussman <su...@collab.net>.
Michael Wood <mw...@its.uct.ac.za> writes:

> $ svn ps svn:author 'blah' --revprop -r1 file://`pwd`/repos/non-existent
> property `svn:author' set on repository revision '1'
> 
> Shouldn't this at least warn?  There is no
> file://`pwd`/repos/non-existent.

This looks like an honest-to-goodness bug.  Nothing happened at all,
and yet it claims something did.  Yikes.  Can you file this?

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

Re: author of a file

Posted by Michael Wood <mw...@its.uct.ac.za>.
On Fri, May 16, 2003 at 11:49:28AM +0200, Branko ??ibej wrote:
> Michael Wood wrote:
> 
> >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' 
> >>http://192.168.1.10:65535/svn/repos/root");
> >>    
> >>
> >                                     ^^^^^
> >  
> >
> >>}
> >>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
> >.../svn/repos/
> >
> >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.)
> >
> He's setting revision properties, not file properties. You can't change
> file properties with --revprop.

OK my mistake, but:

$ rm -rf repos
$ svnadmin create repos
$ cp /bin/true repos/hooks/pre-revprop-change
$ svn mkdir -m "" file://`pwd`/repos/test

Committed revision 1.
$ svn ps svn:author 'blah' --revprop -r1 file://`pwd`/repos/non-existent
property `svn:author' set on repository revision '1'

Shouldn't this at least warn?  There is no
file://`pwd`/repos/non-existent.

-- 
Michael Wood <mw...@its.uct.ac.za>

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

Re: author of a file

Posted by Branko Čibej <br...@xbc.nu>.
Michael Wood wrote:

>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' 
>>http://192.168.1.10:65535/svn/repos/root");
>>    
>>
>                                     ^^^^^
>  
>
>>}
>>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
>.../svn/repos/
>
>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.)
>
He's setting revision properties, not file properties. You can't change
file properties with --revprop.

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


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

Re: author of a file

Posted by Robert <ro...@gmx.de>.
Am Freitag, 16.05.03 um 10:58 Uhr schrieb Michael Wood:
<snip>

Thank you very much.

Robert


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

Re: author of a file

Posted by Michael Wood <mw...@its.uct.ac.za>.
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' 
> http://192.168.1.10:65535/svn/repos/root");
                                     ^^^^^
> }
> 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
.../svn/repos/

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 <mw...@its.uct.ac.za>

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

Re: author of a file

Posted by Robert <ro...@gmx.de>.
Ok.
I wrote:
#! /usr/bin/perl
for($count = 1; $count <= 40; $count++)
{
	system ("svn propset --revprop -r $count svn:author 'welz' 
http://192.168.1.10:65535/svn/repos/root");
}
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/
...
rev 2:  (no author) | 2003-05-08 15:44:14 +0200 (Thu, 08 May 2003) | 1 
line
------------------------------------------------------------------------
rev 1:  (no author) | 2003-05-08 15:43:31 +0200 (Thu, 08 May 2003) | 1 
line

???


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

Re: author of a file

Posted by Ben Collins-Sussman <su...@collab.net>.
Robert <ro...@gmx.de> writes:

> Am Donnerstag, 15.05.03 um 20:06 Uhr schrieb Ben Collins-Sussman:
> > The log isn't showing you r40, it's showing you r8, which is the last
> > rev in which hallo_welt changed.  Try running 'svn log -r40' to see
> > your new author.
> >
> 
> svn log -r 40
> http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
> ------------------------------------------------------------------------
> is empty.

Stop running 'svn log' on hallo_welt.  It didn't change in r40, so
'svn log' returns nothing.  This is covered in the subversion book.

Run 'svn log' on the *root* of your repository.  That will always
display a log message, because '/' always contains changes for every
commit.


> Can I somehow set the author for all revisions except deleting and
> re-adding the item?

Write a shell loop from 0 to 40.  
Run 'svn propset --revprop -r $N svn:author joe http://host/repos/root'.

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

Re: author of a file

Posted by Robert <ro...@gmx.de>.
Am Donnerstag, 15.05.03 um 20:06 Uhr schrieb Ben Collins-Sussman:
> The log isn't showing you r40, it's showing you r8, which is the last
> rev in which hallo_welt changed.  Try running 'svn log -r40' to see
> your new author.
>

svn log -r 40 
http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
------------------------------------------------------------------------
is empty.

and svn propset --revprop -r COMMITTED svn:author "myName" 
http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
subversion/libsvn_client/revisions.c:82: (apr_err=195000)
svn: A path under revision control is needed for this operation
svn: svn_client__get_revision_number: need a version-controlled path to 
fetch local revision info.

Can I somehow set the author for all revisions except deleting and 
re-adding the item?

Robert


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

Re: author of a file

Posted by Ben Collins-Sussman <su...@collab.net>.
Robert <ro...@gmx.de> writes:

> No I typed:
> 
> svn propset --revprop -r HEAD svn:author "welz"
> http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
> and got the answer:
> property `svn:author' set on repository revision '40'

Good, it set the revprop on r40.

> svn log
> http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
> ------------------------------------------------------------------------
> rev 8:  (no author) | 2003-05-08 16:20:48 +0200 (Thu, 08 May 2003) | 1
> line
> ------------------------------------------------------------------------

The log isn't showing you r40, it's showing you r8, which is the last
rev in which hallo_welt changed.  Try running 'svn log -r40' to see
your new author.

> svn propset --revprop -r COMITTED svn:author "welz"
> http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
> subversion/clients/cmdline/main.c:620: (apr_err=205000)
> svn: Client error in parsing arguments
> svn: Syntax error in revision argument "COMITTED"

You misspelled COMMITTED.  Hence the 'syntax error'.


> svn propset --revprop -r BASE svn:author "welz"
> http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
> subversion/libsvn_client/revisions.c:82: (apr_err=195000)
> svn: A path under revision control is needed for this operation
> svn: svn_client__get_revision_number: need a version-controlled path
> to fetch local revision info.

BASE means, "the BASE revision of some versioned item in the working
copy".  But you're not talking about a working item here, you're
talking about a URL, hence the error.


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

Re: author of a file

Posted by Robert <ro...@gmx.de>.
No I typed:

svn propset --revprop -r HEAD svn:author "welz" 
http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
and got the answer:
property `svn:author' set on repository revision '40'
svn log 
http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
------------------------------------------------------------------------
rev 8:  (no author) | 2003-05-08 16:20:48 +0200 (Thu, 08 May 2003) | 1 
line
------------------------------------------------------------------------
If I type:
svn propset --revprop -r COMITTED svn:author "welz" 
http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
subversion/clients/cmdline/main.c:620: (apr_err=205000)
svn: Client error in parsing arguments
svn: Syntax error in revision argument "COMITTED"

or

svn propset --revprop -r BASE svn:author "welz" 
http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
subversion/libsvn_client/revisions.c:82: (apr_err=195000)
svn: A path under revision control is needed for this operation
svn: svn_client__get_revision_number: need a version-controlled path to 
fetch local revision info.

I simply search for a way to set the author for some dozends of files.

Robert


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

Re: author of a file

Posted by Branko Čibej <br...@xbc.nu>.
Ben Collins-Sussman wrote:

>Robert <ro...@gmx.de> writes:
>
>  
>
>>svn propset --revprop Author "myName"
>>    
>>
>
>The name of the rev property is 'svn:author', not 'Author'.
>  
>

Not to mention that there's a "-r" flag missing in there.

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


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

Re: author of a file

Posted by Blair Zajac <bl...@orcaware.com>.
Robert wrote:
> 
> Hello.
> svn propset --revprop svn:author "welz"
> http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
> doesn't work, too. I get the syntax explanation screen.
> 
> Do I have to check out first? I am in no revisioned directory.

You need the revision number to apply it to also (-r XXX).

Blair

-- 
Blair Zajac <bl...@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/

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

Re: author of a file

Posted by Robert <ro...@gmx.de>.
Hello.
svn propset --revprop svn:author "welz" 
http://localhost:65535/svn/repos/trunk/Hallo_Welt/perl/hallo_welt
doesn't work, too. I get the syntax explanation screen.

Do I have to check out first? I am in no revisioned directory.

Am Donnerstag, 15.05.03 um 19:43 Uhr schrieb Ben Collins-Sussman:

> Robert <ro...@gmx.de> writes:
>
>> svn propset --revprop Author "myName"
>
> The name of the rev property is 'svn:author', not 'Author'.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>


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

Re: author of a file

Posted by Ben Collins-Sussman <su...@collab.net>.
Robert <ro...@gmx.de> writes:

> svn propset --revprop Author "myName"

The name of the rev property is 'svn:author', not 'Author'.

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