author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 05 Feb 2013 15:24:24 +0100 | |
changeset 219 | 475366f8ba6f |
parent 210 | 54a73fa50d40 |
child 335 | 7e19ab19148b |
permissions | -rw-r--r-- |
210 | 1 |
" |
2 |
COPYRIGHT (c) 2012-2013 by Jan Vrany |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
88 | 12 |
"{ Package: 'stx:libscm/mercurial' }" |
13 |
||
14 |
Annotation subclass:#HGRevisionAnnotation |
|
15 |
instanceVariableNames:'revision' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'SCM-Mercurial-StX' |
|
19 |
! |
|
20 |
||
210 | 21 |
!HGRevisionAnnotation class methodsFor:'documentation'! |
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 2012-2013 by Jan Vrany |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! ! |
|
88 | 36 |
|
37 |
!HGRevisionAnnotation class methodsFor:'instance creation'! |
|
38 |
||
39 |
revision: aString |
|
40 |
^self new revision: aString |
|
41 |
||
42 |
"Created: / 20-11-2012 / 23:36:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
43 |
! ! |
|
44 |
||
45 |
!HGRevisionAnnotation methodsFor:'accessing'! |
|
46 |
||
47 |
key |
|
48 |
"superclass Annotation says that I am responsible to implement this method" |
|
49 |
||
50 |
^ #HGRevision: |
|
51 |
||
52 |
"Modified: / 20-11-2012 / 23:27:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
53 |
! |
|
54 |
||
55 |
revision |
|
56 |
^ revision |
|
57 |
! |
|
58 |
||
59 |
revision:aStringOrHGRevision |
|
60 |
revision := aStringOrHGRevision asHGRevision |
|
61 |
||
62 |
"Modified: / 20-11-2012 / 23:32:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
63 |
! ! |
|
64 |
||
65 |
!HGRevisionAnnotation methodsFor:'accessing-pragma'! |
|
66 |
||
67 |
arguments |
|
68 |
"Answer the arguments of the receiving pragma. For a pragma defined as <key1: val1 key2: val2> this will answer #(val1 val2)." |
|
69 |
||
70 |
^ Array with: revision asString |
|
71 |
||
72 |
"Modified: / 20-11-2012 / 23:28:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
73 |
! ! |
|
74 |
||
75 |
!HGRevisionAnnotation methodsFor:'initialization'! |
|
76 |
||
77 |
setArguments:anArray |
|
78 |
"Ignored" |
|
79 |
||
80 |
"Modified: / 20-11-2012 / 23:28:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
81 |
! |
|
82 |
||
83 |
setKeyword:aSymbol |
|
84 |
"Ignored" |
|
85 |
||
86 |
"Modified: / 20-11-2012 / 23:28:41 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
87 |
! |
|
88 |
||
89 |
setMethod:aCompiledMethod |
|
90 |
"Ignored" |
|
91 |
||
92 |
"Modified: / 20-11-2012 / 23:28:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
93 |
! ! |
|
94 |
||
95 |
!HGRevisionAnnotation methodsFor:'printing & storing'! |
|
96 |
||
97 |
storeOn:aStream |
|
98 |
"superclass Annotation says that I am responsible to implement this method" |
|
99 |
||
100 |
aStream nextPutAll: '(HGRevisionAnnotation revision: '. |
|
101 |
revision asString storeOn: aStream. |
|
102 |
aStream nextPut:$). |
|
103 |
||
104 |
"Modified: / 20-11-2012 / 23:31:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
105 |
! ! |
|
106 |
||
107 |
!HGRevisionAnnotation methodsFor:'processing'! |
|
108 |
||
109 |
annotatesClass:aClass |
|
110 |
"Ignored" |
|
111 |
||
112 |
"Modified: / 20-11-2012 / 23:31:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
113 |
! |
|
114 |
||
115 |
annotatesMethod:aMethod |
|
116 |
"Ignored" |
|
117 |
||
118 |
"Modified: / 20-11-2012 / 23:31:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
119 |
! ! |
|
120 |
||
121 |
!HGRevisionAnnotation class methodsFor:'documentation'! |
|
122 |
||
123 |
version_HG |
|
115
b1ed2d29054b
version_HG changed to return string.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
124 |
|
b1ed2d29054b
version_HG changed to return string.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
125 |
^ '$Changeset: <not expanded> $' |
88 | 126 |
! ! |
210 | 127 |