3
|
1 |
"{ Package: 'stx:goodies/monticello' }"
|
|
2 |
|
|
3 |
MCAncestry subclass:#MCWorkingAncestry
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
708
|
7 |
category:'SCM-Monticello-Versioning'
|
3
|
8 |
!
|
|
9 |
|
|
10 |
MCWorkingAncestry comment:'The interim record of ancestry for a working copy, gets merged version added to the ancestry, and is used to create the VersionInfo when the working copy becomes a version. '
|
|
11 |
!
|
|
12 |
|
|
13 |
|
|
14 |
!MCWorkingAncestry methodsFor:'as yet unclassified'!
|
|
15 |
|
|
16 |
addAncestor: aNode
|
|
17 |
ancestors _ (self ancestors reject: [:each | aNode hasAncestor: each])
|
|
18 |
copyWith: aNode
|
|
19 |
!
|
|
20 |
|
|
21 |
addStepChild: aVersionInfo
|
|
22 |
stepChildren _ stepChildren copyWith: aVersionInfo
|
|
23 |
!
|
|
24 |
|
|
25 |
date
|
|
26 |
^ Date today
|
|
27 |
!
|
|
28 |
|
|
29 |
infoWithName: nameString message: messageString
|
442
|
30 |
^ MCVersionInfo
|
|
31 |
name: nameString
|
|
32 |
id: UUID new
|
|
33 |
message: messageString
|
|
34 |
date: Date today
|
|
35 |
time: Time now
|
|
36 |
author: ((OperatingSystem getFullUserNameFromID: OperatingSystem getUserID) reject:[:c|c isSeparator])
|
|
37 |
ancestors: ancestors asArray
|
|
38 |
stepChildren: self stepChildren asArray
|
|
39 |
|
|
40 |
"Modified: / 23-08-2011 / 07:43:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
3
|
41 |
!
|
|
42 |
|
|
43 |
name
|
|
44 |
^ '<working copy>'
|
|
45 |
!
|
|
46 |
|
|
47 |
summary
|
|
48 |
^ 'Ancestors: ', self ancestorString
|
|
49 |
! !
|
|
50 |
|
|
51 |
!MCWorkingAncestry class methodsFor:'documentation'!
|
|
52 |
|
|
53 |
version
|
708
|
54 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCWorkingAncestry.st,v 1.3 2012-09-11 21:31:23 cg Exp $'
|
3
|
55 |
! !
|