2

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

C8H10N4O2
  • 18,312
  • 8
  • 98
  • 134
cupakob
  • 8,411
  • 24
  • 67
  • 76

4 Answers4

3

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.

eipipuz
  • 563
  • 1
  • 7
  • 16
  • Sorry my english is not the best, i will try to explain my problem again: When I use svn propset svn:keywords "Id" file.txt then i get something like: $Id: tagging.phtml 3189 2009-05-31 13:33:58Z sirakov $ But I want to put "firstname.lastname" (not my nickname "sirakov") every time when i commit someting new. I hope, you can now understand what i mean. – cupakob Jun 01 '09 at 06:13
2

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?

Sander Rijken
  • 21,376
  • 3
  • 61
  • 85
  • i can't change it, the nickname is generated automatically from my email, which i used to join the developer group. – cupakob Jun 02 '09 at 18:17
0

there is no way to set it :(

cupakob
  • 8,411
  • 24
  • 67
  • 76
0

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.

Boinst
  • 3,365
  • 2
  • 38
  • 60