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

Re: Username Change in SVN

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Fri, 27 Jun 2008 06:21:21 -0500

On Jun 27, 2008, at 01:29, Dzintars Brikis wrote:

> 1. Ok, then if I change username for whole revision - how I check
> what is the author for revision?

svn propget --revprop -r $REV svn:author $REPO

where $REV is the revision number you want to know the author of, and
$REPO is the URL of your repository.

> 2. And "path to the repository" - this is the local path to the
> SVN repository after I have check-outed it ? ... and after that
> should I commit it again ?

"path_to_repository" should have been "url_to_repository". The
correct command to set the author is:

svn propset --revprop -r $REV svn:author $AUTHOR $REPO

where $REV is the revision number you want to set the author of,
$AUTHOR is the string you want to set the author property to, and
$REPO is the URL of your repository.

You can also see "svn help propget" and "svn help propset", and of
course the free book available at http://svnbook.org/

> Paul Koning wrote:
>
>>>>>>> "Dzintars" == Dzintars Brikis <dzintars.brikis_at_mebius.lv>
>>>>>>> writes:
>>>>>>>
>>
>> Dzintars> 1. how to check author for specific file for all revisions.
>>
>> svn log <filename> will do that.
>>
>> Dzintars> 2. how to change author for specific file for all revisions
>> Dzintars> or at least one revision.
>>
>> Author is a property of a revision, NOT of a file. You can't change
>> author for just one of the files changed by the revision; if you
>> change author that changes the whole revision.
>>
>> svn propset -revprop -r <rev> svn:author <newauthor>
>> <path_to_repository>
>>
>> Because a revprop change works on the whole revision, all you need is
>> a path to the repository; you don't need to go down into a
>> subdirectory or to any particular file.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-27 13:21:47 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.