How to set author name for subversion when i'm using svn:keywords

3.8k Views Asked by At

I want to set my full name (or a name chosen by me) to appears in the $Id$ area on commit and not my nickname. Is there a way to do it?

OS: Ubuntu 8.10

4

There are 4 best solutions below

1
On BEST ANSWER

there is no way to set it :(

1
On

You want a file with your name on it and then

svn propset svn:keywords "Author" file.txt

As seen in http ://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html

$Id$ is a combination of Revision Number, Date, Author and URL.

1
On

You could, if the repository allows it, change the author. I would recommend not to do so though, because you'll have to do this after each commit.

Can't you just change your login name?

0
On

Assuming you have permissions to do this, I'm told you can do it with the command

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

If you get an error, you'll need to add pre/post propset hooks.