X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/afce885e38b9bd48deb5b0ab8904f8cdd73c9b91..ae4ab73b5d793b03f91fdcef0fff7405f9f9d75b:/mr?ds=sidebyside diff --git a/mr b/mr index 956dd7d..b37d9a5 100755 --- a/mr +++ b/mr @@ -222,7 +222,7 @@ Be verbose. =item --quiet -Be quiet. This supresses mr's usual output, as well as any output from +Be quiet. This suppresses mr's usual output, as well as any output from commands that are run (including stderr output). If a command fails, the output will be shown. @@ -602,7 +602,7 @@ sub action { my $is_checkout=($action eq 'checkout'); my $is_update=($action =~ /update/); - $ENV{MR_REPO}=$dir; + ($ENV{MR_REPO}=$dir) =~ s!/$!!; $ENV{MR_ACTION}=$action; foreach my $testname ("skip", "deleted") { @@ -946,7 +946,10 @@ sub repodir { return $ret; } -# figure out which repos to act on +# Figure out which repos to act on. Returns a list of array refs +# in the format: +# +# [ "$full_repo_path/", "$mr_config_path/", $section_header ] sub selectrepos { my @repos; foreach my $repo (repolist()) {