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

[PATCH] Sort path names with strcoll(3)

From: <epg_at_pretzelnet.org>
Date: 2002-07-27 04:09:50 CEST

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

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?

---------------------------------------------------------------------
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:12:44 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.