From: Mark Andrews Date: Tue, 30 Jan 2007 06:00:00 +0000 (+0000) Subject: use branch creator as owner of new branches X-Git-Tag: v9.5.0a2~110 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=514f6f14245f42c96f3d5e90462ce2ebe0597d2e;p=thirdparty%2Fbind9.git use branch creator as owner of new branches --- diff --git a/util/update_branches b/util/update_branches index 645b7446fec..ffc18433d9a 100644 --- a/util/update_branches +++ b/util/update_branches @@ -14,7 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: update_branches,v 1.18 2005/05/18 04:15:55 marka Exp $ +# $Id: update_branches,v 1.19 2007/01/30 06:00:00 marka Exp $ # # Track which branches are still open or not in the bind9 cvs repository. @@ -36,6 +36,8 @@ %branches = (); %whom = (); %comments = (); +%history = (); +%dates = (); $repository = "/proj/cvs/prod"; $module = "bind9"; @@ -80,6 +82,23 @@ while () { } close (BRANCHES); +# T 1999-03-15 21:15 +0000 vixie bind [ietf44:A] +open(HISTORY, "cvs history -T -a 2> /dev/null |") || die("can't get history"); +while () { + chomp; + s/[][]//g; + s/:[^ \t]+$//; + s/\s+/ /g; + ($tag, $date, $time, $tz, $who, $mod, $branch) = split; + next if ($mod ne $module ); + next if ($tag ne "T" ); + next if (exists($history{$branch})); + $history{$branch} = $who; + $dates{$branch} = "$date $time $tz"; + print "$_\n"; +} +close (HISTORY); + # # Search repository for new branches. # @@ -110,8 +129,13 @@ while () { s/\s(.*):.*/$1/; # extract label if (!$branches{$_}) { $branches{$_} = "new"; - $whom{$_} = ""; - $comments{$_} = ""; + if (exists($history{$_})) { + $whom{$_} = $history{$_}; + $comments{$_} = $dates{$_}; + } else { + $whom{$_} = ""; + $comments{$_} = ""; + } # print "branch: $_ $file\n"; # debug } }