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

Re: RFC: Log Message Templates via new hook.

From: Simon Large <slarge_at_slarge.plus.com>
Date: 2005-05-27 22:49:34 CEST

kfogel@collab.net wrote:
> In fact, you can make *both* network turnarounds irrelevant:
> 1. Pop up the log message window right away.
> 2. Then in the background, fetch the no-files-list template. Also,
> in the background start the wc crawl.
> 3. If you got a template in step (2), present it to the user in
> some way, so that they know that the log message they're
> currently writing may need to be updated to use the template.
> And, if the user has not yet started typing anything, just
> insert the fetched template into the editor directly. That way
> users can do the intuitive thing (i.e., wait) if they know a
> template is coming.
> 4. When the wc crawl finishes, fetch the with-files-list template.
> If it does not match the no-files-list template, then notify the
> user of this, again in some interface-specific way. And as with
> step (3), if they haven't started typing yet, then just insert
> the template into the editing window directly.

1. Pop up log message Window.
2. User starts typing.
3. no-files-list template appears, so tell the user to use this one.
4. file-list-template appears.
5. Ha-ha, I was just kidding last time. This is the real template.

It would be better if the return from no-files-list could tell you
whether there is also a files-list template available. If there is,
don't bother presenting this one to the user. If there isn't, don't
bother with the second trip.

The other problem is the classic race condition when you present a
Window, and if the user doesn't type anything then put the template in
automatically. What happens when the user starts typing at the same time
the template appears? From a GUI point of view it is confusing. And if
you're a bad typist like me and looking at keyboard instead of screen,
you may not notice that the template popped in just after you looked
away from the screen. For a GUI to work, either you don't let the user
edit until you are ready, or the user doesn't let you present the
template until she is ready.

There are ways to work around it, of course, but it is not quite as
simple as first presented.


  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri May 27 22:49:24 2005

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

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