Login  Register

The Trunk: Monticello-bf.496.mcz

Posted by commits-2 on Mar 08, 2012; 5:40pm
URL: https://forum.world.st/The-Trunk-Monticello-bf-496-mcz-tp4457118.html

Bert Freudenberg uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-bf.496.mcz

==================== Summary ====================

Name: Monticello-bf.496
Author: bf
Time: 8 March 2012, 6:40:14.351 pm
UUID: 63c6d543-303f-47e3-8c5c-bae52b77170c
Ancestors: Monticello-bf.495

- keep branch name when saving new version

=============== Diff against Monticello-bf.495 ===============

Item was changed:
  ----- Method: MCWorkingCopy>>nextVersionName (in category 'private') -----
  nextVersionName
  | branch oldName |
  ancestry ancestors isEmpty
  ifTrue:
  [ counter ifNil: [ counter := 0 ].
  branch := package name ]
  ifFalse:
  [ oldName := ancestry ancestors first versionName.
+ branch := oldName packageAndBranchName.
- branch := oldName packageName.
  counter ifNil:
  [ counter := (ancestry ancestors detectMax:
  [ : eachVersionInfo | eachVersionInfo versionNumber ])
  ifNil: [ 0 ]
  ifNotNil:
  [ : highestNumbered | highestNumbered versionNumber ] ] ].
  counter := counter + 1.
  ^ branch , '-' , Utilities authorInitials , '.' , counter asString!