Author: max
Date: 2007-08-28 17:21:33 -0700 (Tue, 28 Aug 2007)
New Revision: 6272

Modified:
   tools/trunk/svn/binsearch.rb
Log:
+ lastindex should only be set for valid entries.

Modified: tools/trunk/svn/binsearch.rb
===================================================================
--- tools/trunk/svn/binsearch.rb        2007-08-28 23:54:49 UTC (rev 6271)
+++ tools/trunk/svn/binsearch.rb        2007-08-29 00:21:33 UTC (rev 6272)
@@ -21,10 +21,10 @@
     currev = revs[curindex]
     puts "Synchronizing and building r#{currev}..."
     result = `svn up -r#{currev} .;ant clean build; ant webapp.deploy;`
-    print "Done.  Do you still see the problem? (y/n) "
+    print "\aDone.  Do you still see the problem? (y/n) "
     answer = gets.chomp
-    lastindex = curindex
     if answer =~ /y|Y|yes|Yes/ then
+        lastindex = curindex
         # problem is between first and curindex
         last = curindex
         d = first - curindex
@@ -33,6 +33,7 @@
         end
         curindex += (d / 2).to_i 
     elsif answer =~ /n|N|no|No/ then
+        lastindex = curindex
         # problem is between last and curindex
         first = curindex
         d = last - curindex


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to