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

Re: [PATCH] Sort path names with strcoll(3)

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-07-27 04:37:06 CEST

epg@pretzelnet.org wrote:

>I noticed svn ls output wasn't sorted according to locale information,
>so i patched svn_path_compare_paths_nts to use strcoll(3). The results:
>
>0 trunk% ./subversion/clients/cmdline/svn ls http://mandark/repo/test/
>http://mandark/repo/test:
>_ 86 epg 0 Jul 26 21:07 Makefile
>_ 86 epg 0 Jul 26 21:07 barf
>0 trunk% LC_COLLATE=en_US ./subversion/clients/cmdline/svn ls http://mandark/repo/test/
>http://mandark/repo/test:
>_ 86 epg 0 Jul 26 21:07 barf
>_ 86 epg 0 Jul 26 21:07 Makefile
>

+0, but I'd rather use something from APR instead of strcoll, even
though that's a standard function.

>I'd also like to change print_dirents in ls-cmd.c to sort and print
>directories first, and then files, but Garret Rooney wasn't convinced.
>Before i invest the effort, what does everyone think?
>
>

Nah, that doesn't make sense. Neither "dir" on Windows nor "ls" on Unix
do that. If you want directories first, use a GUI (but write one first .-).

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jul 27 04:37:40 2002

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.