author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 30 Nov 2012 21:42:46 +0000 | |
changeset 115 | b1ed2d29054b |
parent 88 | 1ad71a063a20 |
child 210 | 54a73fa50d40 |
permissions | -rw-r--r-- |
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 |
|
115
b1ed2d29054b
version_HG changed to return string.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
98 |
|
b1ed2d29054b
version_HG changed to return string.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
99 |
^ '$Changeset: <not expanded> $' |
88 | 100 |
! ! |