482
|
1 |
"{ Package: 'stx:libsvn' }"
|
378
|
2 |
|
|
3 |
AbstractSourceCodeManager subclass:#SVNSourceCodeManager
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'System-SourceCodeManagement'
|
|
8 |
!
|
|
9 |
|
|
10 |
!SVNSourceCodeManager class methodsFor:'documentation'!
|
|
11 |
|
|
12 |
documentation
|
|
13 |
"
|
|
14 |
For now, this is a dummy SourceCodeManager.
|
|
15 |
It is only provided to deliver the correct versionMethodNameTemplates
|
|
16 |
and versionMethod names.
|
|
17 |
|
|
18 |
Might get more in the future.
|
|
19 |
"
|
|
20 |
! !
|
|
21 |
|
|
22 |
!SVNSourceCodeManager class methodsFor:'queries'!
|
|
23 |
|
|
24 |
isExperimental
|
|
25 |
^ OperatingSystem getLoginName ~= 'cg'.
|
|
26 |
^ true
|
|
27 |
!
|
|
28 |
|
|
29 |
managerTypeName
|
|
30 |
^ 'SVN'
|
|
31 |
!
|
|
32 |
|
|
33 |
nameOfVersionMethodForExtensions
|
|
34 |
^ #'extensionsVersion_SVN'
|
|
35 |
!
|
|
36 |
|
|
37 |
nameOfVersionMethodInClasses
|
|
38 |
^ #'version_SVN'
|
|
39 |
! !
|
|
40 |
|
539
|
41 |
!SVNSourceCodeManager class methodsFor:'source code access'!
|
|
42 |
|
|
43 |
loadPackageWithId: aPackageId fromRepositoryAsAutoloaded: doLoadAsAutoloaded
|
|
44 |
|
|
45 |
| retval loadBlock manager |
|
|
46 |
|
|
47 |
manager := SVN::RepositoryManager current.
|
|
48 |
|
|
49 |
loadBlock := [
|
|
50 |
| repo packageDir |
|
|
51 |
repo := manager repositoryForPackage: aPackageId.
|
|
52 |
retval := (repo notNil and:[repo exists]) ifTrue:[
|
|
53 |
repo workingCopy checkout.
|
|
54 |
packageDir := Smalltalk packageDirectoryForPackageId:aPackageId.
|
|
55 |
Smalltalk
|
|
56 |
loadPackageWithId:aPackageId
|
|
57 |
fromDirectory:packageDir
|
|
58 |
asAutoloaded:doLoadAsAutoloaded
|
|
59 |
] ifFalse:[false]
|
|
60 |
].
|
|
61 |
|
|
62 |
(Query query == true)
|
|
63 |
ifTrue:[loadBlock value]
|
|
64 |
ifFalse:[
|
|
65 |
Query
|
|
66 |
answer: true
|
|
67 |
do:[
|
|
68 |
SVN::ProgressDialog
|
|
69 |
openOn: loadBlock
|
|
70 |
title: ' Loading...'
|
|
71 |
subtitle: aPackageId asText allItalic
|
|
72 |
]
|
|
73 |
].
|
|
74 |
|
|
75 |
^retval
|
|
76 |
|
|
77 |
"Created: / 09-04-2009 / 17:20:01 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
78 |
! !
|
|
79 |
|
378
|
80 |
!SVNSourceCodeManager class methodsFor:'testing'!
|
|
81 |
|
|
82 |
isSVN
|
|
83 |
^ true
|
|
84 |
! !
|
|
85 |
|
|
86 |
!SVNSourceCodeManager class methodsFor:'documentation'!
|
|
87 |
|
|
88 |
version
|
|
89 |
^ '$Header$'
|
|
90 |
!
|
|
91 |
|
|
92 |
version_CVS
|
|
93 |
^ '$Header$'
|
|
94 |
! !
|