88
|
1 |
"{ Package: 'stx:libscm/mercurial' }"
|
|
2 |
|
|
3 |
Annotation subclass:#HGRevisionAnnotation
|
|
4 |
instanceVariableNames:'revision'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'SCM-Mercurial-StX'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!HGRevisionAnnotation class methodsFor:'instance creation'!
|
|
12 |
|
|
13 |
revision: aString
|
|
14 |
^self new revision: aString
|
|
15 |
|
|
16 |
"Created: / 20-11-2012 / 23:36:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
17 |
! !
|
|
18 |
|
|
19 |
!HGRevisionAnnotation methodsFor:'accessing'!
|
|
20 |
|
|
21 |
key
|
|
22 |
"superclass Annotation says that I am responsible to implement this method"
|
|
23 |
|
|
24 |
^ #HGRevision:
|
|
25 |
|
|
26 |
"Modified: / 20-11-2012 / 23:27:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
27 |
!
|
|
28 |
|
|
29 |
revision
|
|
30 |
^ revision
|
|
31 |
!
|
|
32 |
|
|
33 |
revision:aStringOrHGRevision
|
|
34 |
revision := aStringOrHGRevision asHGRevision
|
|
35 |
|
|
36 |
"Modified: / 20-11-2012 / 23:32:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
37 |
! !
|
|
38 |
|
|
39 |
!HGRevisionAnnotation methodsFor:'accessing-pragma'!
|
|
40 |
|
|
41 |
arguments
|
|
42 |
"Answer the arguments of the receiving pragma. For a pragma defined as <key1: val1 key2: val2> this will answer #(val1 val2)."
|
|
43 |
|
|
44 |
^ Array with: revision asString
|
|
45 |
|
|
46 |
"Modified: / 20-11-2012 / 23:28:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
47 |
! !
|
|
48 |
|
|
49 |
!HGRevisionAnnotation methodsFor:'initialization'!
|
|
50 |
|
|
51 |
setArguments:anArray
|
|
52 |
"Ignored"
|
|
53 |
|
|
54 |
"Modified: / 20-11-2012 / 23:28:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
55 |
!
|
|
56 |
|
|
57 |
setKeyword:aSymbol
|
|
58 |
"Ignored"
|
|
59 |
|
|
60 |
"Modified: / 20-11-2012 / 23:28:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
61 |
!
|
|
62 |
|
|
63 |
setMethod:aCompiledMethod
|
|
64 |
"Ignored"
|
|
65 |
|
|
66 |
"Modified: / 20-11-2012 / 23:28:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
67 |
! !
|
|
68 |
|
|
69 |
!HGRevisionAnnotation methodsFor:'printing & storing'!
|
|
70 |
|
|
71 |
storeOn:aStream
|
|
72 |
"superclass Annotation says that I am responsible to implement this method"
|
|
73 |
|
|
74 |
aStream nextPutAll: '(HGRevisionAnnotation revision: '.
|
|
75 |
revision asString storeOn: aStream.
|
|
76 |
aStream nextPut:$).
|
|
77 |
|
|
78 |
"Modified: / 20-11-2012 / 23:31:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
79 |
! !
|
|
80 |
|
|
81 |
!HGRevisionAnnotation methodsFor:'processing'!
|
|
82 |
|
|
83 |
annotatesClass:aClass
|
|
84 |
"Ignored"
|
|
85 |
|
|
86 |
"Modified: / 20-11-2012 / 23:31:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
87 |
!
|
|
88 |
|
|
89 |
annotatesMethod:aMethod
|
|
90 |
"Ignored"
|
|
91 |
|
|
92 |
"Modified: / 20-11-2012 / 23:31:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
93 |
! !
|
|
94 |
|
|
95 |
!HGRevisionAnnotation class methodsFor:'documentation'!
|
|
96 |
|
|
97 |
version_HG
|
|
98 |
"Never, ever change this method. Ask JV or CG why"
|
|
99 |
^thisContext method mclass theNonMetaclass instVarNamed: #revision
|
|
100 |
! !
|