From eaa7acdb9fa043f4d0736a6c675a76eed0f82aed Mon Sep 17 00:00:00 2001 From: "kestes%walrus.com" Date: Fri, 16 Nov 2001 20:45:24 +0000 Subject: [PATCH] leave the update function early if we have not updated anything. git-svn-id: svn://10.0.0.236/trunk@108323 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/tinderbox2/src/lib/TinderDB/VC_CVS.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/tinderbox2/src/lib/TinderDB/VC_CVS.pm b/mozilla/webtools/tinderbox2/src/lib/TinderDB/VC_CVS.pm index 4fcdf385dc1..47d08d51fa9 100755 --- a/mozilla/webtools/tinderbox2/src/lib/TinderDB/VC_CVS.pm +++ b/mozilla/webtools/tinderbox2/src/lib/TinderDB/VC_CVS.pm @@ -134,7 +134,7 @@ use TreeData; use VCDisplay; -$VERSION = ( qw $Revision: 1.17 $ )[1]; +$VERSION = ( qw $Revision: 1.18 $ )[1]; @ISA = qw(TinderDB::BasicTxtDB); @@ -449,6 +449,9 @@ sub apply_db_updates { } # foreach $line } # any updates + ($num_updates) || + return 0; + $METADATA{$tree}{'updates_since_trim'} += $num_updates; if ( ($METADATA{$tree}{'updates_since_trim'} >