]> git.madduck.net Git - code/myrepos.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

rewording
authorJoey Hess <joey@kodama.kitenet.net>
Sun, 14 Oct 2007 07:05:21 +0000 (03:05 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Sun, 14 Oct 2007 07:05:21 +0000 (03:05 -0400)
mr

diff --git a/mr b/mr
index 3cc603f6c3fba08a3007afc2e8139c63238a74a3..29e5fadfa2b3af82c39d0816574e9d765b2956a1 100755 (executable)
--- a/mr
+++ b/mr
@@ -359,7 +359,7 @@ if (! @repos) {
        $nochdir=1;
 }
 
        $nochdir=1;
 }
 
-my (@failed, @successful, @skipped);
+my (@failed, @ok, @skipped);
 foreach my $repo (@repos) {
        action($action, @$repo);
 }
 foreach my $repo (@repos) {
        action($action, @$repo);
 }
@@ -445,7 +445,7 @@ sub action {
                        }
                }
                else {
                        }
                }
                else {
-                       push @successful, $dir;
+                       push @ok, $dir;
                }
 
                print "\n";
                }
 
                print "\n";
@@ -461,18 +461,18 @@ sub showstat {
        }
        return;
 }
        }
        return;
 }
-if (! @successful && ! @failed && ! @skipped) {
+if (! @ok && ! @failed && ! @skipped) {
        die "mr $action: no repositories found to work on\n";
 }
 print "mr $action: finished (".join("; ",
        die "mr $action: no repositories found to work on\n";
 }
 print "mr $action: finished (".join("; ",
-       showstat($#successful+1, "successful", "successful"),
+       showstat($#ok+1, "ok", "ok"),
        showstat($#failed+1, "failed", "failed"),
        showstat($#skipped+1, "skipped", "skipped"),
 ).")\n";
 if (@failed) {
        exit 1;
 }
        showstat($#failed+1, "failed", "failed"),
        showstat($#skipped+1, "skipped", "skipped"),
 ).")\n";
 if (@failed) {
        exit 1;
 }
-elsif (! @successful && @skipped) {
+elsif (! @ok && @skipped) {
        exit 1;
 }
 exit 0;
        exit 1;
 }
 exit 0;