[Cuis-dev] user.changes files

Bernhard Pieber bernhard at pieber.com
Sun Mar 26 07:18:53 PDT 2023


Hi everyone,

I just read up on the purpose of the user.changes file because I had not understood them properly. In case others are wondering as well I found these mails most informative:

Thread New User Changes log file
http://cuis-smalltalk.org/pipermail/cuis-dev_cuis-smalltalk.org/2018-July/003755.html

Thread Changes not recoverable
https://lists.cuis.st/mailman/archives/cuis-dev/2020-December/002545.html
https://lists.cuis.st/mailman/archives/cuis-dev/2020-December/002552.html
https://lists.cuis.st/mailman/archives/cuis-dev/2020-December/002556.html

I learned that code that you file in only goes to the changes file. Manual code changes and do-its are written to the .user.changes file and the .changes file. This makes recovery easier. However, in case you don’t save your image all changes since the last image save remain only in the user.changes file. So the user.changes file are not totally redundant. If you just delete all of them, you might not be able to recover all code changes you did.

If the amount of user.changes file bothers you you can use the Preference #autoNumberUserChanges to have just one.

If I read the code correctly if file-in fails user changes might stop to be written. The attached change set should fix that.

Cheers,
Bernhard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5718-ensure-logUserChanges-is-reset-BernhardPieber-2023Mar26-15h48m-bp.001.cs.st
Type: application/octet-stream
Size: 812 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230326/c8b5ff1c/attachment.obj>


More information about the Cuis-dev mailing list