update_branches revision 61a03692ab84504fb2bd85b71facfe0f6456b466
943N/A# Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC") 561N/A# Permission to use, copy, modify, and distribute this software for any 919N/A# purpose with or without fee is hereby granted, provided that the above 919N/A# copyright notice and this permission notice appear in all copies. 919N/A# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 919N/A# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 919N/A# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 919N/A# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 919N/A# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 919N/A# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 919N/A# PERFORMANCE OF THIS SOFTWARE. 919N/A# $Id: update_branches,v 1.10 2005/05/17 00:45:16 marka Exp $ 919N/A# Track which branches are still open or not in the bind9 cvs repository. 919N/A# This is done so that work that is "in progress" (active) doesn't get 919N/A# so easily forgotten about. 561N/A# closed branches to the end of the file. New branches are found by walking 561N/A# the cvs repository and extracting the new branches from the header fields 837N/A# name, status, to whom the branch belongs and comments. Comments are 837N/A# in '(',')'. The first three field are single words. 561N/A# Make sure we have a up to date copy. If the previous ran failed for 837N/A# any reason remove it (-C). $c =~ s/.*(\(.*\)).*$/$1/; # Search repository for new branches. # print "file: $_\n"; # debug # $file = $_; # save for branch debug below. # use cvs so that the file is locked. open(FILE, "cvs log -h $_|") || die "can't start cvs log -h $_: $!"; next unless m/\.0\.\d$/; # skip if not a branch s/\s(.*):.*/$1/; # extract label # print "branch: $_ $file\n"; # debug # Write out updated version. print BRANCHES "\nBranch\t\t\t\tStatus\tWhom\t(Comments)\n";
print BRANCHES "----------------------------------------------------------\n\n";
for ($i = 0; $i < $tabs; $i++) { for ($i = 0; $i < $tabs; $i++) {