From ec4e590670f444fdbea5ad72dbda9cfdd4eac4b0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 21 Oct 2007 19:33:33 -0400 Subject: [PATCH 1/1] fix leaf subdir case --- mr | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mr b/mr index 0bded23..d9cde93 100755 --- a/mr +++ b/mr @@ -239,8 +239,7 @@ repositories be processed earlier, and larger values to make repositories be processed later. Note that if a repository is located in a subdirectory of another -repository, ordering it to be processed earlier is not recommended, as this -can cause confusion during checkouts. +repository, ordering it to be processed earlier is not recommended. =item chain @@ -448,7 +447,7 @@ foreach my $repo (@list) { } if (! @repos) { # fallback to find a leaf repo - foreach my $repo (@list) { + foreach my $repo (reverse @list) { my $topdir=$repo->{topdir}; my $subdir=$repo->{subdir}; -- 2.39.5