1021
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
113
|
3 |
"{ Package: 'stx:goodies/monticello' }"
|
|
4 |
|
1021
|
5 |
"{ NameSpace: Smalltalk }"
|
|
6 |
|
113
|
7 |
MCFileBasedRepository subclass:#MCHttpRepository
|
|
8 |
instanceVariableNames:'location user password readerCache'
|
|
9 |
classVariableNames:''
|
|
10 |
poolDictionaries:''
|
1053
|
11 |
category:'SCM-Monticello-RemoteRepositories'
|
113
|
12 |
!
|
|
13 |
|
1053
|
14 |
!MCHttpRepository class methodsFor:'documentation'!
|
|
15 |
|
|
16 |
documentation
|
|
17 |
"
|
|
18 |
I am general http repository for monticello.
|
|
19 |
I support the general protocol for listing files in a remote repository.
|
|
20 |
"
|
|
21 |
! !
|
113
|
22 |
|
192
|
23 |
!MCHttpRepository class methodsFor:'initialization'!
|
|
24 |
|
|
25 |
clearPasswords
|
|
26 |
self allSubInstancesDo: [:ea | ea password: ''].
|
|
27 |
! !
|
|
28 |
|
909
|
29 |
!MCHttpRepository class methodsFor:'instance creation'!
|
|
30 |
|
1053
|
31 |
basicFromUrl: aZnUrl
|
1075
|
32 |
aZnUrl hasUsername
|
|
33 |
ifFalse: [ ^ self location: aZnUrl location ]
|
|
34 |
ifTrue: [ ^ (self repositoryClassFor: aZnUrl location) new
|
|
35 |
location: aZnUrl location;
|
|
36 |
user: aZnUrl username;
|
|
37 |
password: aZnUrl password;
|
|
38 |
yourself ]
|
|
39 |
|
|
40 |
"Modified: / 29-08-2018 / 15:17:00 / Claus Gittinger"
|
1053
|
41 |
!
|
|
42 |
|
|
43 |
location: location
|
|
44 |
^ MCServerRegistry uniqueInstance
|
|
45 |
repositoryAt: location credentialsDo: [ :username :password |
|
|
46 |
(self repositoryClassFor: location) new
|
|
47 |
location: location;
|
|
48 |
user: username;
|
|
49 |
password: password;
|
|
50 |
yourself ]
|
|
51 |
!
|
|
52 |
|
909
|
53 |
location: location user: user password: password
|
|
54 |
^ self new
|
|
55 |
location: location;
|
|
56 |
user: user;
|
|
57 |
password: password
|
1053
|
58 |
!
|
|
59 |
|
|
60 |
pharoInboxRepository
|
|
61 |
^ self location: 'http://smalltalkhub.com/mc/Pharo/Pharo60Inbox/main'.
|
|
62 |
!
|
|
63 |
|
|
64 |
pharoRepository
|
|
65 |
^ self location: 'http://smalltalkhub.com/mc/Pharo/Pharo60/main'.
|
|
66 |
!
|
|
67 |
|
|
68 |
project: aProjectIdentifier
|
|
69 |
^ self location: self baseURL, aProjectIdentifier
|
|
70 |
!
|
|
71 |
|
|
72 |
repositoryClassFor: location
|
|
73 |
MCHttpRepository subclassesDo: [ :subclass |
|
|
74 |
(subclass isResponsibleFor: location)
|
|
75 |
ifTrue: [ ^ subclass ]].
|
|
76 |
^ MCHttpRepository
|
|
77 |
! !
|
|
78 |
|
|
79 |
!MCHttpRepository class methodsFor:'*Komitter-Models'!
|
|
80 |
|
|
81 |
pharoLocations
|
|
82 |
"Answer the locations for both pharo and pharo inbox repositories.
|
|
83 |
No commit should actually be pushed directly there"
|
|
84 |
|
|
85 |
^ #('http://smalltalkhub.com/mc/Pharo/Pharo60/main'
|
|
86 |
'http://smalltalkhub.com/mc/Pharo/Pharo60/main/'
|
|
87 |
'http://smalltalkhub.com/mc/Pharo/Pharo60Inbox/main'
|
|
88 |
'http://smalltalkhub.com/mc/Pharo/Pharo60Inbox/main/'
|
|
89 |
'http://smalltalkhub.com/mc/Pharo/Pharo50Inbox/main'
|
|
90 |
'http://smalltalkhub.com/mc/Pharo/Pharo50Inbox/main/')
|
|
91 |
! !
|
|
92 |
|
|
93 |
!MCHttpRepository class methodsFor:'*MonticelloGUI'!
|
|
94 |
|
|
95 |
fillInTheBlankRequest
|
|
96 |
^ 'HTTP Repository:'
|
|
97 |
|
|
98 |
!
|
|
99 |
|
|
100 |
morphicConfigure
|
|
101 |
^ self fillInTheBlankConfigure
|
|
102 |
! !
|
|
103 |
|
|
104 |
!MCHttpRepository class methodsFor:'accessing'!
|
|
105 |
|
|
106 |
baseURL
|
|
107 |
^ ''
|
|
108 |
!
|
|
109 |
|
|
110 |
urlSchemes
|
|
111 |
^ #(http https)
|
909
|
112 |
! !
|
|
113 |
|
|
114 |
!MCHttpRepository class methodsFor:'queries'!
|
113
|
115 |
|
|
116 |
creationTemplate
|
192
|
117 |
^self creationTemplateLocation: 'http://www.squeaksource.com/'
|
113
|
118 |
user: 'squeak'
|
|
119 |
password: 'squeak'
|
192
|
120 |
|
113
|
121 |
!
|
|
122 |
|
|
123 |
creationTemplateLocation: location user: user password: password
|
192
|
124 |
^
|
1053
|
125 |
self name,'
|
192
|
126 |
location: %1
|
|
127 |
user: %2
|
|
128 |
password: %3'
|
|
129 |
bindWith: location storeString
|
|
130 |
with: user storeString
|
|
131 |
with: password storeString
|
|
132 |
|
|
133 |
"Modified: / 16-09-2010 / 14:34:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
1053
|
134 |
"Modified: / 26-08-2018 / 14:28:47 / Claus Gittinger"
|
113
|
135 |
!
|
|
136 |
|
|
137 |
description
|
|
138 |
^ 'HTTP'
|
|
139 |
! !
|
|
140 |
|
1053
|
141 |
!MCHttpRepository class methodsFor:'testing'!
|
|
142 |
|
|
143 |
isResponsibleFor: aURLString
|
|
144 |
"Override in subclasses to enable custom instances for certain URLs"
|
|
145 |
^ true
|
|
146 |
! !
|
|
147 |
|
|
148 |
!MCHttpRepository methodsFor:'*Komitter-Models'!
|
|
149 |
|
|
150 |
isPrivatePharoRepository
|
|
151 |
|
|
152 |
^ self class pharoLocations includes: self location
|
|
153 |
!
|
|
154 |
|
|
155 |
isRemote
|
|
156 |
^ self isPrivatePharoRepository not
|
|
157 |
!
|
|
158 |
|
|
159 |
koRemote
|
|
160 |
|
|
161 |
^ KomitHttpRemote new
|
|
162 |
remote: self;
|
|
163 |
yourself
|
|
164 |
! !
|
|
165 |
|
|
166 |
!MCHttpRepository methodsFor:'*metacello-mc'!
|
|
167 |
|
|
168 |
asRepositorySpecFor: aMetacelloMCProject
|
|
169 |
|
|
170 |
^(aMetacelloMCProject repositorySpec)
|
|
171 |
description: self description;
|
|
172 |
type: 'http';
|
|
173 |
yourself
|
|
174 |
! !
|
|
175 |
|
909
|
176 |
!MCHttpRepository methodsFor:'accessing'!
|
113
|
177 |
|
1053
|
178 |
credentials
|
|
179 |
^ MCServerCredentials user: self user password: self password
|
|
180 |
!
|
|
181 |
|
|
182 |
credentials: mcServerCredentials
|
|
183 |
self user: mcServerCredentials username.
|
|
184 |
self password: mcServerCredentials password.
|
|
185 |
!
|
|
186 |
|
778
|
187 |
location
|
|
188 |
^location
|
|
189 |
!
|
|
190 |
|
113
|
191 |
location: aUrlString
|
192
|
192 |
location := aUrlString
|
113
|
193 |
!
|
|
194 |
|
|
195 |
locationWithTrailingSlash
|
1069
|
196 |
^ (self location endsWith: '/')
|
|
197 |
ifTrue: [self location]
|
|
198 |
ifFalse: [self location, '/']
|
|
199 |
|
|
200 |
"Modified: / 26-08-2018 / 16:16:22 / Claus Gittinger"
|
113
|
201 |
!
|
|
202 |
|
|
203 |
password
|
1021
|
204 |
self userAndPasswordFromSettingsDo: [:usr :pwd | ^pwd].
|
|
205 |
|
1053
|
206 |
self user isEmpty ifTrue: [^password ? ''].
|
113
|
207 |
|
1021
|
208 |
[password isEmpty] whileTrue: [
|
|
209 |
| answer dialog |
|
|
210 |
|
|
211 |
dialog := UIManager isNil ifTrue:[Dialog] ifFalse:[ UIManager default ].
|
113
|
212 |
|
1021
|
213 |
"Give the user a chance to change the login"
|
1069
|
214 |
answer := dialog request: 'User name for ' translated, String cr, self location
|
1021
|
215 |
initialAnswer: self user.
|
|
216 |
answer isEmpty
|
|
217 |
ifTrue: [^password]
|
|
218 |
ifFalse: [self user: answer].
|
|
219 |
|
1069
|
220 |
password := UIManager default requestPassword: 'Password for' translated, ' "', self user, '" ', 'at ' translated, String cr, self location.
|
1021
|
221 |
].
|
113
|
222 |
|
1021
|
223 |
^ password
|
1053
|
224 |
|
1069
|
225 |
"Modified: / 26-08-2018 / 16:16:29 / Claus Gittinger"
|
113
|
226 |
!
|
|
227 |
|
|
228 |
password: passwordString
|
192
|
229 |
password := passwordString
|
113
|
230 |
!
|
|
231 |
|
1053
|
232 |
project
|
|
233 |
"Return a project name"
|
|
234 |
^ (self location splitOn: $/) last
|
|
235 |
!
|
|
236 |
|
113
|
237 |
user
|
|
238 |
self userAndPasswordFromSettingsDo: [:usr :pwd | ^usr].
|
|
239 |
"not in settings"
|
|
240 |
^user
|
|
241 |
!
|
|
242 |
|
|
243 |
user: userString
|
192
|
244 |
user := userString
|
909
|
245 |
! !
|
|
246 |
|
1053
|
247 |
!MCHttpRepository methodsFor:'actions'!
|
909
|
248 |
|
|
249 |
parseFileNamesFromStream: aStream
|
|
250 |
| names fullName |
|
|
251 |
names := OrderedCollection new.
|
|
252 |
[aStream atEnd] whileFalse:
|
|
253 |
[[aStream upTo: $<. {$a. $A. nil} includes: aStream next] whileFalse.
|
|
254 |
aStream upTo: $".
|
|
255 |
aStream atEnd ifFalse: [
|
|
256 |
fullName := aStream upTo: $".
|
1053
|
257 |
names add: fullName urlDecoded ]].
|
909
|
258 |
^ names
|
113
|
259 |
!
|
|
260 |
|
1053
|
261 |
retryOnCredentialRequest: aBlock
|
|
262 |
aBlock on: MCPermissionDenied do: [ :error | |credentials|
|
|
263 |
credentials := MCCredentialsRequest
|
|
264 |
signalUrl: self location
|
|
265 |
username: self user
|
|
266 |
password: self password.
|
|
267 |
credentials
|
|
268 |
ifNotNil: [
|
|
269 |
self credentials: credentials.
|
|
270 |
^ self retryOnCredentialRequest: aBlock ]]
|
|
271 |
!
|
|
272 |
|
|
273 |
urlForFileNamed: aString
|
|
274 |
^ self locationWithTrailingSlash, aString urlEncoded
|
|
275 |
! !
|
|
276 |
|
192
|
277 |
!MCHttpRepository methodsFor:'displaying'!
|
|
278 |
|
|
279 |
displayString
|
|
280 |
|
1069
|
281 |
^ self location
|
192
|
282 |
|
|
283 |
"Created: / 14-09-2010 / 23:20:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
1069
|
284 |
"Modified: / 26-08-2018 / 16:15:38 / Claus Gittinger"
|
113
|
285 |
! !
|
|
286 |
|
1053
|
287 |
!MCHttpRepository methodsFor:'i/o'!
|
|
288 |
|
|
289 |
cacheRawVersionNamed: aString stream: contents
|
|
290 |
"directly forward the contents to the cache repository.
|
|
291 |
this avoids and unnecessary serialization step"
|
|
292 |
MCCacheRepository uniqueInstance
|
|
293 |
writeStreamForFileNamed: aString
|
|
294 |
replace: true
|
|
295 |
do: [ :s| s nextPutAll: contents ]
|
|
296 |
!
|
|
297 |
|
|
298 |
displayProgress: label during: workBlock
|
1069
|
299 |
| nextUpdateTime |
|
|
300 |
|
|
301 |
Smalltalk isSmalltalkX ifTrue:[
|
|
302 |
workBlock value.
|
|
303 |
].
|
|
304 |
|
|
305 |
nextUpdateTime := 0.
|
|
306 |
^UIManager default displayProgress: label
|
|
307 |
from: 0.0 to: 1.0 during:[:bar|
|
|
308 |
[workBlock value] on: HTTPProgress do:[:ex|
|
|
309 |
(ex total == nil or: [ex amount == nil]) ifFalse:[
|
|
310 |
(nextUpdateTime < Time millisecondClockValue
|
|
311 |
or:[ex total = ex amount]) ifTrue:[
|
|
312 |
bar current: ex amount asFloat / ex total asFloat.
|
|
313 |
nextUpdateTime := Time millisecondClockValue + 100.
|
|
314 |
].
|
|
315 |
].
|
|
316 |
ex resume.
|
|
317 |
]
|
|
318 |
].
|
|
319 |
|
|
320 |
"Modified: / 26-08-2018 / 14:57:19 / Claus Gittinger"
|
1053
|
321 |
!
|
|
322 |
|
|
323 |
handleUnsuccessfulResponse: aZnResponse
|
|
324 |
(#(403 401) includes: aZnResponse code)
|
|
325 |
ifTrue: [ MCPermissionDenied signalFor: self ].
|
|
326 |
Error signal: 'Could not save version.'
|
|
327 |
!
|
909
|
328 |
|
1053
|
329 |
loadAllFileNames
|
1069
|
330 |
| client response |
|
|
331 |
self displayProgress: 'Loading all file names from ', self description during: [
|
|
332 |
Smalltalk isSmalltalkX ifTrue:[
|
|
333 |
response := HTTPInterface
|
|
334 |
get: self locationWithTrailingSlash, '?C=M;O=D'
|
|
335 |
userName: self user
|
|
336 |
password: self password.
|
|
337 |
response responseCode ~= 200 ifTrue: [
|
|
338 |
self error:('Could not access "',self location,'" (',response response asString,')')
|
|
339 |
].
|
|
340 |
] ifFalse:[
|
|
341 |
client := self httpClient.
|
|
342 |
client
|
|
343 |
ifFail: [ :exception |
|
|
344 |
(exception className beginsWith: 'Zn')
|
|
345 |
ifTrue: [ MCRepositoryError signal: 'Could not access ', self location, ': ', exception printString ]
|
|
346 |
ifFalse: [ exception pass ] ];
|
|
347 |
url: self locationWithTrailingSlash;
|
|
348 |
queryAt: 'C' put: 'M;O=D'; "legacy that some servers maybe expect"
|
|
349 |
get.
|
|
350 |
self assertNonBinaryResponse: client response
|
|
351 |
].
|
|
352 |
].
|
|
353 |
^ self parseFileNamesFromStream: client contents readStream
|
|
354 |
|
|
355 |
"Modified: / 26-08-2018 / 16:16:11 / Claus Gittinger"
|
1053
|
356 |
! !
|
|
357 |
|
|
358 |
!MCHttpRepository methodsFor:'private'!
|
|
359 |
|
1069
|
360 |
asCreationTemplate
|
|
361 |
^self class creationTemplateLocation: self location user: user password: password
|
|
362 |
|
|
363 |
"Modified: / 26-08-2018 / 16:15:28 / Claus Gittinger"
|
|
364 |
!
|
|
365 |
|
1053
|
366 |
assertBinaryResponse: response
|
|
367 |
|
|
368 |
response contentType isBinary ifFalse: [
|
|
369 |
MCRepositoryError signal: 'Expected a binary response instead of ', response contentType printString ].
|
|
370 |
!
|
909
|
371 |
|
1053
|
372 |
assertNonBinaryResponse: response
|
1069
|
373 |
Smalltalk isSmalltalkX ifTrue:[
|
|
374 |
response contentType = 'text/plain' ifFalse:[
|
|
375 |
Error "MCRepositoryError" signal: 'Did not expect a binary response but got ', response contentType printString
|
|
376 |
].
|
|
377 |
^ self.
|
|
378 |
].
|
|
379 |
response contentType isBinary ifTrue: [
|
|
380 |
MCRepositoryError signal: 'Did not expect a binary response but got ', response contentType printString
|
|
381 |
].
|
|
382 |
|
|
383 |
"Modified: / 26-08-2018 / 15:02:39 / Claus Gittinger"
|
1053
|
384 |
!
|
|
385 |
|
|
386 |
entityStreamContents: aBlock
|
|
387 |
"Generate output in a buffer because we need the length"
|
|
388 |
|
|
389 |
| stream |
|
|
390 |
stream := RWBinaryOrTextStream on: String new.
|
|
391 |
aBlock value: stream.
|
|
392 |
stream reset.
|
|
393 |
^ (ZnStreamingEntity type: ZnMimeType applicationOctetStream)
|
|
394 |
stream: stream;
|
|
395 |
contentLength: stream size;
|
|
396 |
yourself
|
|
397 |
!
|
|
398 |
|
|
399 |
httpClient
|
|
400 |
"Return a new, specifically configured instance of the HTTP client for internal use.
|
|
401 |
Note how we request GZIP compression and will signal progress."
|
|
402 |
|
|
403 |
^ ZnClient new
|
|
404 |
systemPolicy;
|
|
405 |
beOneShot;
|
|
406 |
username: self user password: self password;
|
|
407 |
|
|
408 |
signalProgress: true;
|
|
409 |
yourself
|
1069
|
410 |
!
|
|
411 |
|
|
412 |
userAndPasswordFromSettingsDo: aBlock
|
|
413 |
"The mcSettings file in ExternalSettings preferenceDirectory should contain entries for each account:
|
|
414 |
|
|
415 |
account1: *myhost.mydomain* user:password
|
|
416 |
account2: *otherhost.mydomain/somerep* dXNlcjpwYXNzd29yZA==
|
|
417 |
|
|
418 |
That is it must start with 'account', followed by anything to distinguish accounts, and a colon. Then comes a match expression for the repository url, and after a space the user:password string.
|
|
419 |
|
|
420 |
To not have the clear text password on your disc, you can base64 encode it:
|
|
421 |
(Base64MimeConverter mimeEncode: 'user:password' readStream) contents
|
|
422 |
"
|
|
423 |
|
|
424 |
| entry userAndPassword |
|
|
425 |
Settings ifNotNil: [
|
|
426 |
Settings keysAndValuesDo: [:key :value |
|
|
427 |
(key asLowercase beginsWith: 'account') ifTrue: [
|
|
428 |
entry := value findTokens: ' '.
|
|
429 |
(entry first match: self location) ifTrue: [
|
|
430 |
userAndPassword := entry second.
|
|
431 |
(userAndPassword includes: $:) ifFalse: [
|
|
432 |
userAndPassword := (Base64MimeConverter mimeDecodeToChars: userAndPassword readStream) contents].
|
|
433 |
userAndPassword := userAndPassword findTokens: $:.
|
|
434 |
^aBlock value: userAndPassword first
|
|
435 |
value: userAndPassword second
|
|
436 |
]
|
|
437 |
]
|
|
438 |
]
|
|
439 |
].
|
|
440 |
^nil
|
|
441 |
|
|
442 |
"Modified: / 26-08-2018 / 16:16:02 / Claus Gittinger"
|
|
443 |
!
|
|
444 |
|
|
445 |
versionReaderForFileNamed: aString
|
|
446 |
readerCache ifNil: [readerCache := Dictionary new].
|
|
447 |
^ readerCache at: aString ifAbsent:
|
|
448 |
[self resizeCache: readerCache.
|
|
449 |
super versionReaderForFileNamed: aString do:
|
|
450 |
[:r |
|
|
451 |
r ifNotNil: [readerCache at: aString put: r]]]
|
|
452 |
|
|
453 |
!
|
|
454 |
|
|
455 |
versionReaderForFileNamed: aString do: aBlock
|
1073
|
456 |
| r fileName|
|
1069
|
457 |
|
1073
|
458 |
fileName := aString.
|
|
459 |
(aString endsWith:'.mcz') ifFalse:[
|
|
460 |
fileName := aString,'.mcz'
|
|
461 |
].
|
|
462 |
^(r := self versionReaderForFileNamed: fileName) ifNotNil: [aBlock value: r]
|
1069
|
463 |
|
|
464 |
"Modified: / 14-09-2010 / 19:39:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
1073
|
465 |
"Modified: / 27-08-2018 / 09:35:18 / Claus Gittinger"
|
909
|
466 |
! !
|
|
467 |
|
113
|
468 |
!MCHttpRepository methodsFor:'required'!
|
|
469 |
|
|
470 |
allFileNames
|
192
|
471 |
| response |
|
1069
|
472 |
response := HTTPInterface
|
|
473 |
get: self locationWithTrailingSlash, '?C=M;O=D'
|
|
474 |
userName: self user
|
|
475 |
password: self password.
|
192
|
476 |
response responseCode ~= 200
|
1069
|
477 |
ifTrue: [self error:('Could not access "',self location,'" (',response response asString,')')].
|
192
|
478 |
^ self parseFileNamesFromStream: response data readStream
|
|
479 |
|
|
480 |
"Modified: / 14-09-2010 / 19:16:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
473
|
481 |
"Modified: / 07-09-2011 / 12:34:23 / cg"
|
1069
|
482 |
"Modified: / 26-08-2018 / 16:15:24 / Claus Gittinger"
|
113
|
483 |
!
|
|
484 |
|
|
485 |
description
|
1069
|
486 |
^ self location
|
|
487 |
|
|
488 |
"Modified: / 26-08-2018 / 16:15:33 / Claus Gittinger"
|
113
|
489 |
!
|
|
490 |
|
192
|
491 |
flushCache
|
|
492 |
super flushCache.
|
|
493 |
readerCache := nil.
|
|
494 |
!
|
|
495 |
|
113
|
496 |
readStreamForFileNamed: aString do: aBlock
|
192
|
497 |
|
|
498 |
| response |
|
|
499 |
response := HTTPInterface get: (self urlForFileNamed: aString) userName: self user password: self password.
|
|
500 |
^response responseCode == 200
|
1053
|
501 |
ifTrue: [
|
|
502 |
"/ self assertBinaryResponse: client response.
|
|
503 |
"immediately cache the version and avoid an unnecessary serialization"
|
|
504 |
"/ self cacheRawVersionNamed: aString stream: client contents ].
|
|
505 |
aBlock value: response data readStream.
|
|
506 |
].
|
192
|
507 |
|
|
508 |
"Modified: / 14-09-2010 / 19:38:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
1073
|
509 |
"Modified: / 27-08-2018 / 09:34:25 / Claus Gittinger"
|
113
|
510 |
!
|
|
511 |
|
|
512 |
writeStreamForFileNamed: aString replace: ignoreBoolean do: aBlock
|
|
513 |
| stream response |
|
192
|
514 |
stream := RWBinaryOrTextStream on: String new.
|
113
|
515 |
aBlock value: stream.
|
192
|
516 |
response := HTTPSocket
|
113
|
517 |
httpPut: stream contents
|
|
518 |
to: (self urlForFileNamed: aString)
|
|
519 |
user: self user
|
|
520 |
passwd: self password.
|
|
521 |
|
|
522 |
(#( 'HTTP/1.1 201 ' 'HTTP/1.1 200 ' 'HTTP/1.0 201 ' 'HTTP/1.0 200 ')
|
|
523 |
anySatisfy: [:code | response beginsWith: code ])
|
|
524 |
ifFalse: [self error: response].
|
|
525 |
! !
|
|
526 |
|
1053
|
527 |
!MCHttpRepository methodsFor:'storing'!
|
|
528 |
|
|
529 |
storeVersion: aVersion
|
|
530 |
self retryOnCredentialRequest: [ super storeVersion: aVersion ]
|
|
531 |
! !
|
|
532 |
|
113
|
533 |
!MCHttpRepository class methodsFor:'documentation'!
|
|
534 |
|
277
|
535 |
version
|
1021
|
536 |
^ '$Header$'
|
277
|
537 |
!
|
|
538 |
|
192
|
539 |
version_CVS
|
1021
|
540 |
^ '$Header$'
|
192
|
541 |
!
|
|
542 |
|
|
543 |
version_SVN
|
1021
|
544 |
^ '$Id$'
|
113
|
545 |
! !
|
778
|
546 |
|