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

Re: user defined property names

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-11-02 19:34:29 CET

John Norris wrote:
> I am interested in adding user defined property names to the drop down list
> in the add property dialog.
> I believe the best way to do this is to allow the user to add the names to
> two text configuration files (one for files, one for directories). I
> considered adding them as a registry value but it would need to be done for
> each PC - this way the files can be stored on a shared drive and so reduce
> admin as well as provide some security.
> The values for the configuration files could be stored in the registry as
> other admin values are.

Please no. I really don't like to have a setting to point to another
setting.
Either store this in the registry, or in a config file. If you use a
config file, store that file in %APPDATA% like Subversion and any other
good program does.

> It was suggested that instead of storing the file locations in the registry
> they could be stored in a property.

Even worse: that way you will force to have each user set up the path to
the network share equally. Or if you use local paths, you have to make
sure that no user has an OS with another language or another setting
than the rest.

> I took this a stage further and stored the property names in two properties
> (once gain, one for files, one for directories).
> This approach has a number of advantages. There is no need for a separate
> admin dialog from the original approach. There is no need to read files and
> convert from ASCII to Unicode. Admin may be easier as there is nothing to
> set up on the PC.
> The disadvantage is where the properties should be attached. So that the
> whole directory structure (trunk, branches, tags) is covered when the
> properties are applied, the whole repository has to be checked out rather
> than just trunk. Also, its possibly not as obvious. Security should be OK as
> the directory the properties are attached to can be made read only.
> So, I am not sure where the properties get attached but other than that,
> "the user defined property names defined in a property" approach is the
> preferred option.
> Comments?

You could create a new "project property" (like e.g. tsvn:logminsize).
That property then could have a list of other predefined properties.

> PS. Is something wrong with the website - it is very slow.

which one? tigris.org? tortoisesvn.net?
If it's tigris.org, there's nothing we can do.
If it's tortoisesvn.net: I haven't noticed that it's slow, even though
there are sometimes over 100 people accessing it at the same time.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Nov 2 19:35:56 2006

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

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