streetparade
streetparade

Reputation: 32918

How to set Author for SVN

How can i set the author in svn? i use smart svn?

Upvotes: 0

Views: 11293

Answers (2)

BusiPlay
BusiPlay

Reputation: 61

The author of a given commit is stored in SVN as a revision property, namely svn:author. This will automatically be set to the user specified in the svn commit command (or the username specified when prompted for credentials if no user is specified in the command and anonymous commits are disallowed)

After a commit occurs, it can be possible to edit the specific properties, depending on the server configuration. This is very similar to editing a revision's log message, as specified in the response to this Stack Overflow question

However in this case, assuming revision property edits are enabled for your repostory on the server, you will want to edit the svn:author property as follows:

svn ps svn:author "author_name" --revprop -r revision_number "repository_url"

Upvotes: 1

Michał Niklas
Michał Niklas

Reputation: 54342

I think you want to see author in file properties. Is it right? I don't know how to do it in smart svn while I use command line or TortoiseSVN.

In Windows with TortoiseSVN use file context menu and click on file properties. There is "Subversion" tab. In this tab you can add properties. To add author you should add"

property name=svn:keywords
property value=Author Date Id Revision

If you want to add such property to all files you add to repository then look at your Subversion config file: c:\Documents and Settings\[user]\[AppData]\Subversion\config

there is auto-props section and set it to:

[auto-props]
* = svn:keywords=Author Date Id Revision

(this works only for new files that you add to repository).

There is documentation of svn file properties

Upvotes: 2

Related Questions