[FIX] condenseSources (was: Re: [Q] Removing changes file content.) ([closed] on Mantis ID 2514)

Ken Causey ken at kencausey.com
Mon Jan 16 21:13:35 UTC 2006


This issue has been moved to the Mantis database and should be followed
up at

http://bugs.impara.de/view.php?id=2514

In the future please post all new issues on the Mantis server at

http://bugs.impara.de/

Ken

On Mon, 2006-01-16 at 10:49 +0100, Bert Freudenberg wrote:
> You should have at most two versions, one in the sources file and one  
> in the changes file. If you have more, then condenseChanges did not  
> work properly.
> 
> One particular thing that breaks when running condenseChanges is  
> overrides, which relies on the method history in the changes file.
> 
> Attached is a fix for that, it preserves method histories for methods  
> in a "*-override" category. It's pretty dumb, retaining each and  
> every version of that method. An improvement would be to only keep  
> the necessary ones, that is, those most recent after the  
> categorization changed. But it works ;-)
> 
> - Bert -
> 
> Am 16.01.2006 um 04:10 schrieb Sungjin Chun:
> 
> > Even though after running condenseChanges, I do have multiple  
> > versions of some method. (I can see this with VersionBrowser).  
> > Thanks anyway. I'll try more.
> >
> > On Jan 16, 2006, at 2:24 AM, Lukas Renggli wrote:
> >
> >>> I might have done something wrong, but after condenseChanges and
> >>> condenseSources the size of sources file increased as much as  
> >>> changes
> >>> file. Yes, the changes file is 4k now but total size is not  
> >>> decreased.
> >>
> >> #condenseChanges just removes the version history from the
> >> changes-file, so if you have accepted the same method twice it just
> >> keeps the last version. This should decrease the size of your
> >> changes-file.
> >>
> >> #condenseSources is something completely different. I guess there is
> >> no reason that someone wants to do this on its own, unless they are
> >> releasing Squeak 4.0, that (probably) will be shipped with a new
> >> source-file. This will not change the total size of the changes- plus
> >> the sources-file, as the changes will be moved to the source.
> >>
> >> I am not sure, if everything I wrote here is correct, this is just
> >> what I think these methods do. I need to do a #condenseChanges from
> >> time to time to reduce the size of the changes-file, because it
> >> reaches its limits; but I've never done a #condenseSources.
> >>
> >> Lukas
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060116/d95a85b5/attachment.pgp


More information about the Squeak-dev mailing list