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

Re: Automatic update & commit

From: Lorenz <lorenznl_at_yahoo.com>
Date: Thu, 24 May 2012 06:22:06 +0000

Stefan Küng wrote:

>On 23.05.2012 09:25, Hans-Emil Skogh wrote:
>>> I would like to move the core automatic commit& update code to
>>> TSVN to make it available to a much larger user base.
>> ...
>>> What would be changed in TSVN UI? - New context menu entry (top
>>> level by default?) "Automatic mode"; icon symbolizes on / off
>>
>> I'd like to propose to add a new TortoiseSVN project property to be
>> able to disable this functionality on projects/repositories where
>> it's not desirable to use it.
>>
>> I imagine that an accidental activation of automatic mode followed by
>> some enthusiastic moving& editing could wreak havoc on a project in
>> very little time without the user understanding what is going on.
>>
>> The property could be called "tsvn:automaticmode" and the states
>> could be "on" (always enable automatic mode for this project), "off"
>> (never allow automatic mode on this project) or not set (default)
>> which would indicate user choice.
>
>I don't think that's a good idea. Here's why: if you set that property
>and disable automatic mode, then you also disable this for all read-only
>users who just want to have the updated source.
>Imagine an open source project setting that property....

There are in fact two seperate automatic modes.
One for commit and one for update.

And at least the commit part should be controllable by the server
administrator.

So perhapse there should be two properies:
        tsvn:automatic-commit
and tsvn:automatic-update
both defaulting to 'off' and options 'per-user' and 'on'

the latter might be useful for automatic website updates or such.

>[...]
>Having the option to turn this on in the submenu, not as a top-level
>menu entry should be enough in my opinion.
>If that's not enough, only showing the entry in the extended menu would
>help as well.

If there are two properties, there should be two (sub)menu entries
too.
And menu entries could/should reflect the state.

I'm thinking about menu entries with a check mark on the left side.

If the related property is 'off' or 'on' the check box should reflect
the setting, but the menu entry should be grayed-out to indicate that
the user has no choice here.

In the 'per-user' setting menu entry would be displayed in the normal
colors and reflect the user choice.

In light of the restrictions regarding icon overlay slots I refrain
from proposing additional overlay icons 8-)

-- 
Lorenz
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2964769
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-05-24 11:40:56 CEST

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.