OSDN Git Service

git-svn: sort multi-init output
authorEric Wong <normalperson@yhbt.net>
Thu, 28 Dec 2006 09:16:22 +0000 (01:16 -0800)
committerJunio C Hamano <junkio@cox.net>
Thu, 28 Dec 2006 09:39:47 +0000 (01:39 -0800)
This looks a bit more pleasant for users.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-svn.perl

index 74a3424..b28c5bb 100755 (executable)
@@ -2481,7 +2481,7 @@ sub libsvn_ls_fullurl {
        my $pool = SVN::Pool->new;
        my $r = defined $_revision ? $_revision : $ra->get_latest_revnum;
        my ($dirent, undef, undef) = $ra->get_dir('', $r, $pool);
-       foreach my $d (keys %$dirent) {
+       foreach my $d (sort keys %$dirent) {
                if ($dirent->{$d}->kind == $SVN::Node::dir) {
                        push @ret, "$d/"; # add '/' for compat with cli svn
                }