johnf wrote:
> On Wednesday 16 April 2008 09:34:23 am Paul McNett wrote:
>> johnf wrote:
>>> require static typing.  BTW you do realize that recent changes are the
>>> cause of the error appearing.  I have not changed the code in well over a
>>> month - and all was working a month ago.
>> Can you do regression testing to find the revision where the problem
>> appeared?
>>
>> Paul
> remind me how (I know I always ask).  It seems I have a mental block when it 
> comes to svn.  

check out a fresh dabo
note the revision number downloaded as END_REV
update as of about a month ago:
   svn up -r {2008-03-15}
note the revision number that downloaded as BEG_REV

Test that first revision. If the problem exists, go back another month, 
etc. Each time you go back a month, note the END_REV and BEG_REV. When 
you find the month where the problem doesn't exist, then do successive 
svn updates, dividing the set in two each time to quickly find the 
offending change. For example, say BEG_REV is 3500 and END_REV is 4000. 
Say the offending change is in 3664. Here's how I find it:

svn up -r 3750
test: problem exists
svn up -r 3625
test: problem doesn't exist
svn up -r 3700
test: problem exists
svn up -r 3650
test: problem doesn't exist
svn up -r 3675
test: problem exists
svn up -r 3662
test: problem doesn't exist
svn up -r 3670
test: problem exists
svn up -r 3664
test: problem exists
svn up -r 3663
test: problem doesn't exist
now I know it is in 3664. See who/what to blame:
svn log -vr 3664
svn diff -r 3663:3664 > d
vi d

If it is a huge change, it'll be tough to find the offending code. But 
at least you can tell us which revision broke it for you. If you can 
come up with a fix to that change that preserves the intent of the 
change while keeping your code running without error, then send us your 
svn diff for review.

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to