Re: [viewvc-dev] svn commit: r2626 - branches/property-diff: lib templates

"C. Michael Pilato" <[email protected]> Mon, 17 Oct 2011 15:31:16 -0400
Newsgroups gmane.comp.version-control.cvs.viewcvs.devel
Organization CollabNet, Inc.
Message-ID <4E9C8284.5000609__25586.0730693259$1318879890$gmane$org@collab.net>
On 10/17/2011 01:19 PM, Alexey Neyman wrote:
> On Monday, October 17, 2011 10:02:35 am C. Michael Pilato wrote:
>> What do you think is more intuitive, that a directory diff URL without a
>> recursive-ness specifier included would be recursive, or that it would be
>> non-recursive?  I kinda think that recursive operation should be the
>> default, especially since Subversion is unique in that it offers some
>> non-trivial meaning to the phrase "non-recursive directory diff" (because
>> it actually has something to diff in such scenarios: properties).
> 
> There are two issues here:
> - Default "recursiveness" for a directory diff
> - Link formatting
> 
> I don't have a strong opinion on the default "recursiveness" setting. Are you 
> suggesting to put "&recursive=0" to current URLs so that the default view is 
> recursive and the meaning of the URLs remains the same once recursive diff is 
> introduced?
> 
> As to link formatting, my concern is that recursive diff may be quite large 
> (e.g. if performed on a large check-in at the top-of-project directory). 
> Setting it out as a separate option in parentheses is, to some extent, a mild 
> warning, sort of "do-you-really-want-it". It also makes it easier for 
> templates to disable such links conditionally.

No concerns here whatsoever about the proposed link formatting.  I'll note,
though, that ViewVC templates can't disable functionality -- they can merely
obscure it.  If a fully recursive directory diff comes into being, we'll
need viewvc.conf configury to allow/disallow it.

And maybe I'm beginning to answer my own question here.  Maybe what's needed
is not "&recursive=0" or "&recursive=1", but to go ahead and preserve your
existing change (that is, non-recursive dir diffs by default), and then
if/when we can do a recursive diff, we assign that functionality to a new
view specifier ("view=deepdiff", for example) instead of today's
"view=diff".  That gives admins a better "cognitive hook" for that
functionality, and allows us to add "deepdiff" (or whatever we call the new
view) to the allowed_views configuration option.

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4251&dsMessageId=2857861

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk6cgoQACgkQokEGqRcG/W7k/gCfXzOoFbS6jAUrN/O+pRsdtr0e
140Anipj0v5TJ3UMHH+aZWY6JUDr2GL2
=QrVv
-----END PGP SIGNATURE-----