[Gdal-dev] RFC 2: Migration to OSGeo Subversion Repository
Mateusz Łoskot
mateusz at loskot.net
Wed May 10 15:25:24 EDT 2006
Daniel Morissette wrote:
> Mateusz Łoskot wrote:
>> Daniel Morissette wrote:
>>
>>> If I understood correctly, if I don't edit my local SVN config
>>> and then create/commit a new file to the GDAL repository, then
>>> the auto props may not be set on it, and the "$Id: $" (for
>>> instance) would not be handled properly, is that right? If yes
>>> then I'm very disappointed.
>>
>>
>> No. If someone (e.g. during import/add files) will fire: svn
>> propset svn:keywords "Id" file.cpp
>>
>> then this information is stored and also revisioned, so noone needs
>> to repeate setting this property.
>>
>> It's simple to assign SVN properties using regexp patterns with
>> help of find/grep.
>
> I undertand that once a property is set on a given file then it
> applies to everyone using this file in the repository. This makes
> sense and is the bare minimum that SVN needs to provide.
>
> However, what I meant was that if I, as a developer, create a new
> file.cpp that didn't exist before, and I add this file to the
> repository, then the properties won't be set automatically on the
> file in the repository unless I modify my local SVN config to
> automatically set those properties on all new files that I create.
Yes, you're right. The only way to use it (regarding limitations on
CollabNet's server) is to use auto-props:
http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.4
> I find that this is an annoying limitation, and the best workaround
> suggested so far (by Frank) would be to have a script run daily on
> the repository that applies the properties to all new files.
> Unfortunately this is a hack, not really a clean a solution.
>
> (I found out later that SVN supports pre/post commit hooks in which
> we could have set the properties but because Collabnet won't let us
> add our own hooks on the server this is not an option for us)
There is a chance that this issue will be fixed in future:
http://subversion.tigris.org/faq.html#auto-props
http://subversion.tigris.org/issues/show_bug.cgi?id=1974
Cheers
--
Mateusz Łoskot
http://mateusz.loskot.net
More information about the Gdal-dev
mailing list