C. Michael Pilato wrote:
> Justin Erenkrantz <justin@erenkrantz.com> writes:
>>- Show the full paths (incl. filenames) in the subject line. CVS did
>
> Patch attached.
Does this patch simply put all changed pathnames into the subject line? That
would be ridiculous for commits that change many files. It needs to make some
sort of intelligent compromise: if one file is changed in a particular
directory, then give its name; if many files are changed, then probably just
give the directory name. Obviously it is subjective to decide exactly what the
output should be, and the algorithm is potentially a little complex, but if it
is important, it can be done.
I have written a program for converting a list of file names into approximately
N prefixes, intended for displaying a useful list of command-line completions
instead of readline asking "Do you really want to see all 567 possibilities?"
Perhaps the algorithm I came up with would be useful for this. Here is an
example of it giving approximately 10 prefixes representing the main Subversion
C files:
~/src/subversion> globcomplete -n10 subversion/*/*.c subversion/*/*/*.c
subversion/clients/cmdline/...[34]
subversion/libsvn_...[153]
subversion/mod_authz_svn/mod_authz_svn.c
subversion/mod_dav_svn/...[11]
subversion/svnadmin/main.c
subversion/svndumpfilter/main.c
subversion/svnlook/main.c
subversion/svnserve/...[2]
subversion/svnversion/main.c
subversion/tests/...[30]
- Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 22 17:20:16 2004