Question

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

Was it helpful?

Solution

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

OTHER TIPS

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"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top