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

Re: Problems with the documentation of Subversion dump format

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sat, 31 Dec 2011 04:35:47 +0200

Mark Mielke wrote on Fri, Dec 30, 2011 at 20:22:50 -0500:
> On 12/30/2011 02:36 PM, Daniel Shahaf wrote:
> >Mark Mielke wrote on Fri, Dec 30, 2011 at 14:24:25 -0500:
> >
> >>With the caveat being that tools that assume that svn:author was set by
> >>the Subversion API may no longer recognize the author...
> >"by the Subversion API" isn't the right phrase, but anyway: by default
> >the svn:author properties are set to the authenticated username (when
> >such is available) and cannot be changed unless the administrator runs
> >either 'svnadmin' or installs a pre-revprop-change hook.
> >
> >There's nothing preventing people from having, say, spaces in their
> >usernames. So clients should cope with that.
> >
> >There is also nothing preventing people from having newlines in their
> >usernames... but now, the fact the library would allow this doesn't mean
> >it's a good idea to do this.
>
> I think you are not understanding my concern. If svn:author is only
> ever displayed to the user - then "authenticated username" may not
> be a desirable form to use. For teams of 10 people, sure you can
> recognize the uid of everybody in the team. But what about teams of
> 100, or teams of 1000?

AuthLDAPRemoteUserAttribute cn

Then you can do

% svn commit --username "Daniel Shahaf"

and the logs will show

------------------------------------------------------------------------
r1 | Daniel Shahaf | strftime(...) | 1 line
------------------------------------------------------------------------
Received on 2011-12-31 03:36:36 CET

This is an archived mail posted to the Subversion Dev mailing list.