Software Freedom Law Center

Changeset 11

Show
Ignore:
Timestamp:
12/09/07 22:06:49 (1 year ago)
Author:
bkuhn
Message:
  • update-loblaw-test.plx needs to push upon completion, and some error
    checking on commits.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r10 r11  
    112007-12-09  Bradley M. Kuhn  <bkuhn@softwarefreedom.org> 
     2 
     3        * dev-tools/update-loblaw-test.plx (ProcessRevision): Added 'push' 
     4        at completion.  Added check on commit success. 
    25 
    36        * dev-tools/post-hook-loblaw-test-feed.plx: Ported over from export-cal. 
  • trunk/dev-tools/update-loblaw-test.plx

    r10 r11  
    9898      print SENDMAIL ", $user\@softwarefreedom.org" if defined $user; 
    9999      print SENDMAIL "\nFrom: root\@softwarefreedom.org\n", 
    100       "Subject: CAL,COMMIT_HOOK\n\n$message\n.\n"; 
     100      "Subject: LOBLAW,COMMIT_HOOK\n\n$message\n.\n"; 
    101101      close(SENDMAIL); 
    102102      if ($? != 0) { 
     
    287287  # HG process will read this var. 
    288288  $ENV{EMAIL} = 'svn@softwarefreedom.org'; 
     289  my $commitDone = 0; 
    289290 
    290291  foreach my $vals (@operateOnFiles) { 
     
    330331      } 
    331332      $tempFH->close(); 
    332       read_from_process($HG, '-l', $tempFile, 'commit', 
    333                         "$LOBLAW_TEST_HG_CHECKOUT/$file"); 
     333      my @vals = read_from_process($HG, '-l', $tempFile, 'commit', 
     334                                   "$LOBLAW_TEST_HG_CHECKOUT/$file"); 
    334335      unlink($tempFile); 
     336      DieLog("Unexpected output from commit: " . join("\n", @vals), 
     337             $LOCK_CLEANUP_CODE) if (@vals > 0); 
     338      $commitDone = 1; 
    335339    } else { 
    336340      DieLog("Invalid svnlook status, $operation, in $changeLine", 
    337341             $LOCK_CLEANUP_CODE); 
    338342    } 
     343    read_from_process($HG, 'push') if $commitDone; 
    339344  } 
    340345  &$LOCK_CLEANUP_CODE; 

SFLC Main Page

[frdm] Support SFLC