This is a simple by slightly invasive idea I'd like to run past the community.
Sometimes when I look at packages in Pharo/main and PharoInbox/main repositories,
I wonder which Issues particular package versions belongs to.
So I'd like to add an automatic reference to their log message
back to the Slice.
I think the following could be a nice way to do it...
MCWorkingCopy>>newVersionWithName: nameString message: messageString in: aRepository
| info deps depsMsgString |
info := ancestry infoWithName: nameString message: messageString.
ancestry := MCWorkingAncestry new addAncestor: info.
self modified: true; modified: false.
"*" depsMsgString := messageString, String cr, String cr, 'Required by ', nameString.
"*" deps := self collectDependenciesWithMessage: depsMsgString in: aRepository.
(self repositoryGroup includes: aRepository)
ifFalse: [ self repositoryGroup addRepository: aRepository ].
^ MCVersion
package: package
info: info
snapshot: package snapshot
dependencies: deps
Your thoughts?
Changed lines marked "*".
cheers -ben