[comp.sys.mac.programmer] MPW, projector, DeleteRevisions

HNEVANLINNA@opmvax.csc.fi (06/14/89)

	I have been using MPW-projector for a while, but today I had to
	make a copy from my project. Hmm, 1740 kB, well I can get my rid
	of revisions and my database file. I used DeleteRevisions for
	all my source files and DeleteRevisions -file to my databasefile.
	BUT THE PROJECT SIZE DID NOT CHANGE !!!!!!!!!!
	I look with projectinfo and yes, revisions and datafile are
	all gone. I unmounted my project and server disk and started over.
	Yes, no change in project size.

	How $%&@ can I get my project smaller ????

	I was forced to split my project, but there must (?) a better way.


			Jouni Rynv
			Finnish Meterological Institute
			Department of Geophysics

keith@Apple.COM (Keith Rollin) (06/16/89)

In article <133@opmvax.csc.fi> HNEVANLINNA@opmvax.csc.fi writes:
>
>	I have been using MPW-projector for a while, but today I had to
>	make a copy from my project. Hmm, 1740 kB, well I can get my rid
>	of revisions and my database file. I used DeleteRevisions for
>	all my source files and DeleteRevisions -file to my databasefile.
>	BUT THE PROJECT SIZE DID NOT CHANGE !!!!!!!!!!
>	I look with projectinfo and yes, revisions and datafile are
>	all gone. I unmounted my project and server disk and started over.
>	Yes, no change in project size.
>
>	How $%&@ can I get my project smaller ????
>
>	I was forced to split my project, but there must (?) a better way.
>

Unfortunately, there is no better way.

When you delete revisions from your database, the data IS deleted, but the
database is not compacted. Instead, the free space is put on a free page chain.
It is used when you later check in newer revisions. The only time the database 
will get smaller is when the freed pages are at the end of the database. When 
that happens, the end of the file is cut back to the right length.

The only thing you can do is check everything out, orphan them, and then check
them into a new project. Sad, but true.

------------------------------------------------------------------------------
Keith Rollin  ---  Apple Computer, Inc.  ---  Developer Technical Support
INTERNET: keith@apple.com
    UUCP: {decwrl, hoptoad, nsc, sun, amdahl}!apple!keith
"Argue for your Apple, and sure enough, it's yours" - Keith Rollin, Contusions