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

Re: mailer.py additions...

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-11-22 17:18:52 CET

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

- 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

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.