author | HG Automerge |
Thu, 24 Nov 2016 21:56:31 +0000 | |
branch | jv |
changeset 1015 | 7b6393ea3d52 |
parent 1003 | 0ebeea1cdeeb |
permissions | -rw-r--r-- |
3 | 1 |
"{ Package: 'stx:goodies/monticello' }" |
2 |
||
1003
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
708
diff
changeset
|
3 |
"{ NameSpace: Smalltalk }" |
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
708
diff
changeset
|
4 |
|
3 | 5 |
MCAncestry subclass:#MCWorkingAncestry |
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
708 | 9 |
category:'SCM-Monticello-Versioning' |
3 | 10 |
! |
11 |
||
12 |
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. ' |
|
13 |
! |
|
14 |
||
15 |
||
1003
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
708
diff
changeset
|
16 |
!MCWorkingAncestry methodsFor:'accessing'! |
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
708
diff
changeset
|
17 |
|
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
708
diff
changeset
|
18 |
ancestors:aCollection |
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
708
diff
changeset
|
19 |
ancestors := aCollection. |
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
708
diff
changeset
|
20 |
! ! |
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
708
diff
changeset
|
21 |
|
3 | 22 |
!MCWorkingAncestry methodsFor:'as yet unclassified'! |
23 |
||
24 |
addAncestor: aNode |
|
25 |
ancestors _ (self ancestors reject: [:each | aNode hasAncestor: each]) |
|
26 |
copyWith: aNode |
|
27 |
! |
|
28 |
||
29 |
addStepChild: aVersionInfo |
|
30 |
stepChildren _ stepChildren copyWith: aVersionInfo |
|
31 |
! |
|
32 |
||
33 |
date |
|
34 |
^ Date today |
|
35 |
! |
|
36 |
||
37 |
infoWithName: nameString message: messageString |
|
442 | 38 |
^ MCVersionInfo |
39 |
name: nameString |
|
40 |
id: UUID new |
|
41 |
message: messageString |
|
42 |
date: Date today |
|
43 |
time: Time now |
|
44 |
author: ((OperatingSystem getFullUserNameFromID: OperatingSystem getUserID) reject:[:c|c isSeparator]) |
|
45 |
ancestors: ancestors asArray |
|
46 |
stepChildren: self stepChildren asArray |
|
47 |
||
48 |
"Modified: / 23-08-2011 / 07:43:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3 | 49 |
! |
50 |
||
51 |
name |
|
52 |
^ '<working copy>' |
|
53 |
! |
|
54 |
||
55 |
summary |
|
56 |
^ 'Ancestors: ', self ancestorString |
|
57 |
! ! |
|
58 |
||
59 |
!MCWorkingAncestry class methodsFor:'documentation'! |
|
60 |
||
61 |
version |
|
708 | 62 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCWorkingAncestry.st,v 1.3 2012-09-11 21:31:23 cg Exp $' |
3 | 63 |
! ! |
1003
0ebeea1cdeeb
Added MCWorkingAncestry>>ancestors:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
708
diff
changeset
|
64 |