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

RE: Setting Author

From: Scott Pritchett <scott.pritchett_at_amtrak.co.uk>
Date: Fri, 4 Jan 2008 16:38:01 -0000

I found this at http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/help-onepage.html#tsvn-serversetup-svnserve-6 :-

To enable write access to a repository, you need to edit the conf/svnserve.conf file in your repository directory. This file controls the configuration of the svnserve daemon, and also contains useful documentation.

You can enable anonymous write access by simply setting:

[general]
anon-access = write

However, you will not know who has made changes to a repository, as the svn:author property will be empty. You will also be unable to control who makes changes to a repository. This is a somewhat risky setup!

One way to overcome this is to create a password database:

[general]
anon-access = none
auth-access = write
password-db = userfile

Where userfile is a file which exists in the same directory as svnserve.conf. This file can live elsewhere in your file system (useful for when you have multiple repositories which require the same access rights) and may be referenced using an absolute path, or a path relative to the conf directory. If you include a path, it must be written /the/unix/way. Using \ or drive letters will not work. The userfile should have a structure of:

[users]
username = password
...

-------------------------------------
Sorted

Scott

-----Original Message-----
From: Dave Robinson [mailto:dave.robinson_at_kirkfreeport.net]
Sent: 04 January 2008 15:24
To: users_at_tortoisesvn.tigris.org
Subject: RE: Setting Author

share?

>>> scott.pritchett_at_amtrak.co.uk 1/4/2008 10:00:45 AM >>>
I found out how to do it. Stand down everyone.

-----Original Message-----
From: Scott Pritchett [mailto:scott.pritchett_at_amtrak.co.uk]
Sent: 04 January 2008 10:20
To: users_at_tortoisesvn.tigris.org
Subject: Setting Author

We use svnserve on a Unix box. I would like to be able to set the Author
property so that $Author$ is resolved in the working-catalog. I have
found very little to explain how to do this, I can set it manually
having set svn:keywords but I want the commit to set it. Is is possible
through setting up authorisation in a particular way?

If it's a hook can someone give me an example.

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org

                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                               

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-01-04 17:41:50 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.