author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 14 Jan 2013 22:16:57 +0000 | |
changeset 178 | 1ed827252fee |
parent 177 | 1b0ddad9770e |
child 180 | 7b70d26f28da |
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 |
^ #( |
|
173
c72794df7ae3
Implemented commit menu item in file browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
30 |
#'stx:goodies/sunit' "TestCase - superclass of HGTests " |
c72794df7ae3
Implemented commit menu item in file browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
31 |
#'stx:libbasic' "UninterpretedBytes - superclass of HGChangesetId " |
c72794df7ae3
Implemented commit menu item in file browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
32 |
#'stx:libbasic2' "Singleton - superclass of HGStatus " |
46
d5a192b11a1a
- More Smalltalk/X support
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
40
diff
changeset
|
33 |
#'stx:libbasic3' "AbstractSourceCodeManager - superclass of HGSourceCodeManager " |
173
c72794df7ae3
Implemented commit menu item in file browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
34 |
#'stx:libscm/common' "SCMAbstractSourceCodeManager - superclass of HGSourceCodeManager " |
c72794df7ae3
Implemented commit menu item in file browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
35 |
#'stx:libtool' "AbstractSettingsApplication - superclass of HGSourceCodeManagementSettingsAppl " |
c72794df7ae3
Implemented commit menu item in file browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
36 |
#'stx:libview' "Color - referenced by HGCommitDialog>>moreOptionsLabel " |
c72794df7ae3
Implemented commit menu item in file browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
37 |
#'stx:libview2' "ApplicationModel - superclass of HGCommitDialog " |
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 |
150
1813913f6106
Addec HGRepositoru>>remotes returning list of remote repositories.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
146
diff
changeset
|
86 |
HGRemote |
151
527a1e85aef8
Support for 'autopush' in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
150
diff
changeset
|
87 |
HGPushError |
527a1e85aef8
Support for 'autopush' in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
150
diff
changeset
|
88 |
HGPushWouldCreateNewHeadError |
162
108fc9ee061e
Added HGWorkingCopyBrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
161
diff
changeset
|
89 |
HGWorkingCopyBrowser |
177
1b0ddad9770e
Initial support for merging.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
173
diff
changeset
|
90 |
HGMergeInfo |
1b0ddad9770e
Initial support for merging.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
173
diff
changeset
|
91 |
HGCachedFileData |
178
1ed827252fee
More work on merging. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
92 |
HGMergeTool |
34 | 93 |
) |
94 |
! |
|
95 |
||
96 |
extensionMethodNames |
|
97 |
"lists the extension methods which are to be included in the project. |
|
98 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
99 |
||
100 |
^ #( |
|
103
04731ef44417
HGNodeId renamed to HGChangesetId
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
100
diff
changeset
|
101 |
ByteArray asHGChangesetId |
04731ef44417
HGNodeId renamed to HGChangesetId
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
100
diff
changeset
|
102 |
Integer asHGChangesetId |
04731ef44417
HGNodeId renamed to HGChangesetId
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
100
diff
changeset
|
103 |
Object asHGChangesetId |
04731ef44417
HGNodeId renamed to HGChangesetId
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
100
diff
changeset
|
104 |
String asHGChangesetId |
80
8f300696b26b
Added configurable path to 'hg' command.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
69
diff
changeset
|
105 |
UserPreferences hgCommand |
8f300696b26b
Added configurable path to 'hg' command.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
69
diff
changeset
|
106 |
UserPreferences hgCommand: |
151
527a1e85aef8
Support for 'autopush' in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
150
diff
changeset
|
107 |
UserPreferences hgAutopush |
527a1e85aef8
Support for 'autopush' in commit dialog.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
150
diff
changeset
|
108 |
UserPreferences hgAutopush: |
88 | 109 |
Object asHGRevision |
110 |
'Annotation class' HGRevision: |
|
111 |
'ProjectDefinition class' hgBinaryRevision |
|
112 |
'ProjectDefinition class' hgLogicalRevision |
|
107
c92f7674485e
Fixed test StXTests>>test_commit_03c
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
105
diff
changeset
|
113 |
'ProjectDefinition class' hgPostLoad |
154
c1221bf5f357
Added 'Push' menu to system browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
151
diff
changeset
|
114 |
#'Tools::NewSystemBrowser' commonMenuHGBrowseWorkingCopy |
c1221bf5f357
Added 'Push' menu to system browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
151
diff
changeset
|
115 |
#'Tools::NewSystemBrowser' selectedProjectsForHG |
c1221bf5f357
Added 'Push' menu to system browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
151
diff
changeset
|
116 |
'Tools::NewSystemBrowser class' #'classMenuSCMExtra_HG' |
c1221bf5f357
Added 'Push' menu to system browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
151
diff
changeset
|
117 |
'Tools::NewSystemBrowser class' #'projectMenuSCMExtra_HG' |
161
ed22df640210
Bugfix: added lost NewSystemBrowser>>commonMenuHGPushSlice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
159
diff
changeset
|
118 |
#'Tools::NewSystemBrowser' commonMenuHGPushSlice |
162
108fc9ee061e
Added HGWorkingCopyBrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
161
diff
changeset
|
119 |
'AbstractFileBrowser class' hgMenu |
108fc9ee061e
Added HGWorkingCopyBrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
161
diff
changeset
|
120 |
'ConfigurableFeatures class' hasHGSupport |
108fc9ee061e
Added HGWorkingCopyBrowser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
161
diff
changeset
|
121 |
'ConfigurableFeatures class' hasHGSupportEnabled |
163
21bc6994087d
Experimental HGWorkingCopyBrowser - unfinished!
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
162
diff
changeset
|
122 |
AbstractFileBrowser currentHgRepository |
21bc6994087d
Experimental HGWorkingCopyBrowser - unfinished!
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
162
diff
changeset
|
123 |
AbstractFileBrowser hasHGWorkingCopySelected |
173
c72794df7ae3
Implemented commit menu item in file browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
124 |
AbstractFileBrowser hgCommit |
c72794df7ae3
Implemented commit menu item in file browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
125 |
AbstractFileBrowser hgExecuteCommand: |
c72794df7ae3
Implemented commit menu item in file browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
126 |
AbstractFileBrowser hgExecuteCommand:objects: |
c72794df7ae3
Implemented commit menu item in file browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
127 |
AbstractFileBrowser hgStatus |
178
1ed827252fee
More work on merging. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
128 |
AbstractFileBrowser hgMenuMerge |
173
c72794df7ae3
Implemented commit menu item in file browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
129 |
#'Tools::NewSystemBrowser' commonMenuHGBrowseTemporaryWorkingCopy |
34 | 130 |
) |
178
1ed827252fee
More work on merging. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
131 |
|
1ed827252fee
More work on merging. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
132 |
"Modified: / 14-01-2013 / 22:16:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
34 | 133 |
! ! |
134 |
||
135 |
!stx_libscm_mercurial class methodsFor:'description - project information'! |
|
136 |
||
137 |
applicationIconFileName |
|
138 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file" |
|
139 |
||
140 |
^ nil |
|
141 |
"/ ^ self applicationName |
|
142 |
! |
|
143 |
||
144 |
companyName |
|
145 |
"Return a companyname which will appear in <lib>.rc" |
|
146 |
||
100
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
147 |
^ 'Jan Vrany' |
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
148 |
|
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
149 |
"Modified: / 23-11-2012 / 20:27:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
34 | 150 |
! |
151 |
||
152 |
description |
|
153 |
"Return a description string which will appear in vc.def / bc.def" |
|
154 |
||
100
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
155 |
^ 'Mercurial integration for Smalltalk/X' |
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
156 |
|
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
157 |
"Modified: / 23-11-2012 / 20:27:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
34 | 158 |
! |
159 |
||
160 |
legalCopyright |
|
161 |
"Return a copyright string which will appear in <lib>.rc" |
|
162 |
||
100
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
163 |
^ 'Copyright Jan Vrany 2012' |
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
164 |
|
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
165 |
"Modified: / 23-11-2012 / 20:27:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
34 | 166 |
! |
167 |
||
168 |
productInstallDirBaseName |
|
169 |
"Returns a default installDir which will appear in <app>.nsi. |
|
170 |
This is usually not the one you want to keep" |
|
171 |
||
172 |
^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last |
|
173 |
! |
|
174 |
||
175 |
productName |
|
176 |
"Return a product name which will appear in <lib>.rc" |
|
177 |
||
100
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
178 |
^ 'Smalltalk/X Mercurial Integration' |
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
179 |
|
7e2196730455
Test fixes. Added library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
88
diff
changeset
|
180 |
"Modified: / 23-11-2012 / 20:28:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
34 | 181 |
! ! |
182 |
||
183 |
!stx_libscm_mercurial class methodsFor:'description - svn'! |
|
184 |
||
185 |
svnRepositoryUrlString |
|
186 |
"Return a SVN repository URL of myself. |
|
187 |
(Generated since 2011-04-08) |
|
188 |
Do not make the string shorter!!!!!! We have to use fixed-length keyword!!!!!! |
|
189 |
" |
|
190 |
||
191 |
^ '$URL:: $' |
|
192 |
! |
|
193 |
||
194 |
svnRevisionNr |
|
195 |
"Return a SVN revision number of myself. |
|
196 |
This number is updated after a commit" |
|
197 |
||
198 |
^ "$SVN-Revision:"'nil '"$" |
|
199 |
! ! |
|
200 |
||
201 |
!stx_libscm_mercurial class methodsFor:'documentation'! |
|
202 |
||
54
66045198bfbc
More changes towards self hosting. Some work on model is still missing...
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
51
diff
changeset
|
203 |
version_HG |
115
b1ed2d29054b
version_HG changed to return string.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
107
diff
changeset
|
204 |
|
b1ed2d29054b
version_HG changed to return string.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
107
diff
changeset
|
205 |
^ '$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
|
206 |
! |
66045198bfbc
More changes towards self hosting. Some work on model is still missing...
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
51
diff
changeset
|
207 |
|
34 | 208 |
version_SVN |
59
b8722ad42c3b
Removed dependency on git
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
54
diff
changeset
|
209 |
^ '§Id:: §' |
34 | 210 |
! ! |