author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 07 Dec 2012 16:36:27 -0800 | |
changeset 146 | 1015b8f6dc1c |
parent 145 | 1b8652185a8f |
child 150 | 1813913f6106 |
permissions | -rw-r--r-- |
34 | 1 |
"{ Package: 'stx:libscm/mercurial' }" |
2 |
||
3 |
LibraryDefinition subclass:#stx_libscm_mercurial |
|
4 |
instanceVariableNames:'' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
7 |
category:'* Projects & Packages *' |
|
8 |
! |
|
9 |
||
10 |
||
11 |
!stx_libscm_mercurial class methodsFor:'description'! |
|
12 |
||
13 |
excludedFromPreRequisites |
|
14 |
"list all packages which should be ignored in the automatic |
|
15 |
preRequisites scan. See #preRequisites for more." |
|
16 |
||
17 |
^ #( |
|
18 |
) |
|
19 |
! |
|
20 |
||
21 |
preRequisites |
|
22 |
"list all required packages. |
|
23 |
This list can be maintained manually or (better) generated and |
|
24 |
updated by scanning the superclass hierarchies and looking for |
|
25 |
global variable accesses. (the browser has a menu function for that) |
|
26 |
Howevery, often too much is found, and you may want to explicitely |
|
27 |
exclude individual packages in the #excludedFromPrerequisites method." |
|
28 |
||
29 |
^ #( |
|
88 | 30 |
#'stx:goodies/sunit' "TestAsserter - superclass of HGTests " |
31 |
#'stx:libbasic' "ByteArray - superclass of HGNodeId " |
|
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
59
diff
changeset
|
32 |
#'stx:libbasic2' "Singleton - superclass of HGStatus::Added " |
46
d5a192b11a1a
- More Smalltalk/X support
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
40
diff
changeset
|
33 |
#'stx:libbasic3' "AbstractSourceCodeManager - superclass of HGSourceCodeManager " |
88 | 34 |
#'stx:libscm/common' "SCMAbstractTask - superclass of HGCommitTask " |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
59
diff
changeset
|
35 |
#'stx:libtool' "AbstractSourceCodeManagementSettingsAppl - superclass of HGSourceCodeManagementSettingsAppl " |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
59
diff
changeset
|
36 |
#'stx:libview' "ImageMask - referenced by HGIconLibrary class>>hgLogo2 " |
88 | 37 |
#'stx:libview2' "Model - superclass of HGSourceCodeManagementSettingsAppl " |
34 | 38 |
) |
39 |
! ! |
|
40 |
||
41 |
!stx_libscm_mercurial class methodsFor:'description - contents'! |
|
42 |
||
43 |
classNamesAndAttributes |
|
44 |
"lists the classes which are to be included in the project. |
|
45 |
Each entry in the list may be: a single class-name (symbol), |
|
46 |
or an array-literal consisting of class name and attributes. |
|
47 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
48 |
||
49 |
^ #( |
|
50 |
"<className> or (<className> attributes...) in load order" |
|
51 |
HGCommand |
|
52 |
HGCommandParser |
|
53 |
(HGRepositoriesResource autoload) |
|
54 |
HGRepository |
|
55 |
HGRepositoryObject |
|
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
59
diff
changeset
|
56 |
(HGTestCase autoload) |
34 | 57 |
(HGTests autoload) |
58 |
HGWorkingCopyFile |
|
59 |
#'stx_libscm_mercurial' |
|
60 |
HGBranch |
|
61 |
HGWorkingCopy |
|
103
04731ef44417
HGNodeId renamed to HGChangesetId
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
100
diff
changeset
|
62 |
HGChangesetId |
36 | 63 |
HGStatus |
64 |
HGError |
|
105
25e8ff9d2a31
Added read-only support for branches.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
103
diff
changeset
|
65 |
HGRepositoryError |
36 | 66 |
HGCommandError |
40
e3699c0b00f9
Baisc support for changesets (revision log)
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
39
diff
changeset
|
67 |
(HGCommandParserTests autoload) |
e3699c0b00f9
Baisc support for changesets (revision log)
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
39
diff
changeset
|
68 |
HGChangeset |
46
d5a192b11a1a
- More Smalltalk/X support
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
40
diff
changeset
|
69 |
HGPackageModel |
d5a192b11a1a
- More Smalltalk/X support
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
40
diff
changeset
|
70 |
HGCommitDialog |
d5a192b11a1a
- More Smalltalk/X support
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
40
diff
changeset
|
71 |
HGIconLibrary |
d5a192b11a1a
- More Smalltalk/X support
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
40
diff
changeset
|
72 |
HGPackageModelRegistry |
d5a192b11a1a
- More Smalltalk/X support
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
40
diff
changeset
|
73 |
HGSourceCodeManagementSettingsAppl |
d5a192b11a1a
- More Smalltalk/X support
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
40
diff
changeset
|
74 |
HGSourceCodeManager |
49
ffb879bfafe7
- stx_libscm_mercurial
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
46
diff
changeset
|
75 |
HGAuthorQuery |
51
61700cf82743
- HGCommandParser
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
50
diff
changeset
|
76 |
HGCommandParseError |
54
66045198bfbc
More changes towards self hosting. Some work on model is still missing...
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
51
diff
changeset
|
77 |
HGCommitTask |
69
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
59
diff
changeset
|
78 |
HGChangesetFile |
17045d49309f
Refactoring: preparation for accessing changeset contents.
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
59
diff
changeset
|
79 |
(HGStXTests autoload) |
88 | 80 |
HGRevisionInfo |
81 |
HGRevisionAnnotation |
|
105
25e8ff9d2a31
Added read-only support for branches.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
103
diff
changeset
|
82 |
HGNoSuchBranchError |
135
c74b92e6a2f8
Added HGChangeset>>changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
115
diff
changeset
|
83 |
HGChange |
145
1b8652185a8f
Added HGRepository>>config.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
135
diff
changeset
|
84 |
HGConfig |
146
1015b8f6dc1c
Added check for author signature before commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
145
diff
changeset
|
85 |
HGCommitError |
34 | 86 |
) |
87 |
! |
|
88 |
||
89 |
extensionMethodNames |
|
90 |
"lists the extension methods which are to be included in the project. |
|
91 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
92 |
||
93 |
^ #( |
|
103
04731ef44417
HGNodeId renamed to HGChangesetId
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
100
diff
changeset
|
94 |
ByteArray asHGChangesetId |
04731ef44417
HGNodeId renamed to HGChangesetId
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
100
diff
changeset
|
95 |
Integer asHGChangesetId |
04731ef44417
HGNodeId renamed to HGChangesetId
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
100
diff
changeset
|
96 |
Object asHGChangesetId |
04731ef44417
HGNodeId renamed to HGChangesetId
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
100
diff
changeset
|
97 |
String asHGChangesetId |
80
8f300696b26b
Added configurable path to 'hg' command.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
69
diff
changeset
|
98 |
UserPreferences hgCommand |
8f300696b26b
Added configurable path to 'hg' command.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
69
diff
changeset
|
99 |
UserPreferences hgCommand: |
88 | 100 |
Object asHGRevision |
101 |
'Annotation class' HGRevision: |
|
102 |
'ProjectDefinition class' hgBinaryRevision |
|
103 |
'ProjectDefinition class' hgLogicalRevision |
|
107
c92f7674485e
Fixed test StXTests>>test_commit_03c
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
105
diff
changeset
|
104 |
'ProjectDefinition class' hgPostLoad |
34 | 105 |
) |
103
04731ef44417
HGNodeId renamed to HGChangesetId
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
100
diff
changeset
|
106 |
|
107
c92f7674485e
Fixed test StXTests>>test_commit_03c
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
105
diff
changeset
|
107 |
"Modified: / 27-11-2012 / 22:12:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
34 | 108 |
! ! |
109 |
||
110 |
!stx_libscm_mercurial class methodsFor:'description - project information'! |
|
111 |
||
112 |
applicationIconFileName |
|
113 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file" |
|
114 |
||
115 |
^ nil |
|
116 |
"/ ^ self applicationName |
|
117 |
! |
|
118 |
||
119 |
companyName |
|
120 |
"Return a companyname which will appear in <lib>.rc" |
|
121 |
||
100
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
122 |
^ 'Jan Vrany' |
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
123 |
|
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
124 |
"Modified: / 23-11-2012 / 20:27:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
34 | 125 |
! |
126 |
||
127 |
description |
|
128 |
"Return a description string which will appear in vc.def / bc.def" |
|
129 |
||
100
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
130 |
^ 'Mercurial integration for Smalltalk/X' |
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
131 |
|
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
132 |
"Modified: / 23-11-2012 / 20:27:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
34 | 133 |
! |
134 |
||
135 |
legalCopyright |
|
136 |
"Return a copyright string which will appear in <lib>.rc" |
|
137 |
||
100
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
138 |
^ 'Copyright Jan Vrany 2012' |
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
139 |
|
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
140 |
"Modified: / 23-11-2012 / 20:27:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
34 | 141 |
! |
142 |
||
143 |
productInstallDirBaseName |
|
144 |
"Returns a default installDir which will appear in <app>.nsi. |
|
145 |
This is usually not the one you want to keep" |
|
146 |
||
147 |
^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last |
|
148 |
! |
|
149 |
||
150 |
productName |
|
151 |
"Return a product name which will appear in <lib>.rc" |
|
152 |
||
100
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
153 |
^ 'Smalltalk/X Mercurial Integration' |
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
154 |
|
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
155 |
"Modified: / 23-11-2012 / 20:28:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
34 | 156 |
! ! |
157 |
||
158 |
!stx_libscm_mercurial class methodsFor:'description - svn'! |
|
159 |
||
160 |
svnRepositoryUrlString |
|
161 |
"Return a SVN repository URL of myself. |
|
162 |
(Generated since 2011-04-08) |
|
163 |
Do not make the string shorter!!!!!! We have to use fixed-length keyword!!!!!! |
|
164 |
" |
|
165 |
||
166 |
^ '$URL:: $' |
|
167 |
! |
|
168 |
||
169 |
svnRevisionNr |
|
170 |
"Return a SVN revision number of myself. |
|
171 |
This number is updated after a commit" |
|
172 |
||
173 |
^ "$SVN-Revision:"'nil '"$" |
|
174 |
! ! |
|
175 |
||
176 |
!stx_libscm_mercurial class methodsFor:'documentation'! |
|
177 |
||
54
66045198bfbc
More changes towards self hosting. Some work on model is still missing...
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
51
diff
changeset
|
178 |
version_HG |
115
b1ed2d29054b
version_HG changed to return string.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
107
diff
changeset
|
179 |
|
b1ed2d29054b
version_HG changed to return string.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
107
diff
changeset
|
180 |
^ '$Changeset: <not expanded> $' |
54
66045198bfbc
More changes towards self hosting. Some work on model is still missing...
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
51
diff
changeset
|
181 |
! |
66045198bfbc
More changes towards self hosting. Some work on model is still missing...
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
51
diff
changeset
|
182 |
|
34 | 183 |
version_SVN |
59
b8722ad42c3b
Removed dependency on git
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
54
diff
changeset
|
184 |
^ '§Id:: §' |
34 | 185 |
! ! |