author | Claus Gittinger <cg@exept.de> |
Fri, 18 Nov 2016 16:14:26 +0100 | |
changeset 1180 | 92753f6cc822 |
parent 805 | a64b96f60c50 |
permissions | -rw-r--r-- |
725 | 1 |
" |
2 |
Copyright (c) 2007-2010 Jan Vrany |
|
3 |
Copyright (c) 2009-2010 eXept Software AG |
|
4 |
||
5 |
Permission is hereby granted, free of charge, to any person |
|
6 |
obtaining a copy of this software and associated documentation |
|
7 |
files (the 'Software'), to deal in the Software without |
|
8 |
restriction, including without limitation the rights to use, |
|
9 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
10 |
copies of the Software, and to permit persons to whom the |
|
11 |
Software is furnished to do so, subject to the following |
|
12 |
conditions: |
|
13 |
||
14 |
The above copyright notice and this permission notice shall be |
|
15 |
included in all copies or substantial portions of the Software. |
|
16 |
||
17 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
18 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
19 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
20 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
21 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
22 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
23 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
24 |
OTHER DEALINGS IN THE SOFTWARE. |
|
25 |
" |
|
453 | 26 |
"{ Package: 'stx:libsvn' }" |
3 | 27 |
|
28 |
"{ NameSpace: SVN }" |
|
29 |
||
30 |
BranchCommand subclass:#CatCommand |
|
725 | 31 |
instanceVariableNames:'workingCopy path' |
3 | 32 |
classVariableNames:'' |
33 |
poolDictionaries:'' |
|
34 |
category:'SVN-Private-Commands' |
|
35 |
! |
|
36 |
||
725 | 37 |
!CatCommand class methodsFor:'documentation'! |
38 |
||
39 |
copyright |
|
40 |
" |
|
41 |
Copyright (c) 2007-2010 Jan Vrany |
|
42 |
Copyright (c) 2009-2010 eXept Software AG |
|
43 |
||
44 |
Permission is hereby granted, free of charge, to any person |
|
45 |
obtaining a copy of this software and associated documentation |
|
46 |
files (the 'Software'), to deal in the Software without |
|
47 |
restriction, including without limitation the rights to use, |
|
48 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
49 |
copies of the Software, and to permit persons to whom the |
|
50 |
Software is furnished to do so, subject to the following |
|
51 |
conditions: |
|
52 |
||
53 |
The above copyright notice and this permission notice shall be |
|
54 |
included in all copies or substantial portions of the Software. |
|
55 |
||
56 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
57 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
58 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
59 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
60 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
61 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
62 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
63 |
OTHER DEALINGS IN THE SOFTWARE. |
|
64 |
||
65 |
" |
|
66 |
! ! |
|
67 |
||
68 |
!CatCommand class methodsFor:'others'! |
|
69 |
||
70 |
version_CVS |
|
805
a64b96f60c50
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
725
diff
changeset
|
71 |
^ '$Header$' |
725 | 72 |
! ! |
3 | 73 |
|
74 |
!CatCommand methodsFor:'accessing'! |
|
75 |
||
76 |
path |
|
77 |
^ path |
|
78 |
! |
|
79 |
||
80 |
path:aString |
|
81 |
path := aString. |
|
725 | 82 |
! |
83 |
||
84 |
workingCopy |
|
85 |
^ workingCopy |
|
86 |
||
87 |
"Created: / 16-03-2008 / 10:10:38 / janfrog" |
|
88 |
! |
|
89 |
||
90 |
workingCopy:aSVNWorkingCopy |
|
91 |
||
92 |
self assert: (aSVNWorkingCopy isKindOf: SVN::WorkingCopy). |
|
93 |
||
94 |
workingCopy := aSVNWorkingCopy. |
|
95 |
||
96 |
"Created: / 16-03-2008 / 10:10:38 / janfrog" |
|
97 |
"Modified: / 19-08-2009 / 11:28:58 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
3 | 98 |
! ! |
99 |
||
100 |
!CatCommand methodsFor:'executing - private'! |
|
101 |
||
102 |
svnCmd |
|
103 |
"raise an error: must be redefined in concrete subclass(es)" |
|
104 |
||
105 |
^'cat' |
|
106 |
||
107 |
"Created: / 02-04-2008 / 15:53:19 / janfrog" |
|
108 |
! |
|
109 |
||
110 |
svnCmdArgumentsOn: arg |
|
111 |
"raise an error: must be redefined in concrete subclass(es)" |
|
112 |
||
113 |
arg |
|
114 |
nextPut: '-r'; |
|
725 | 115 |
nextPut: revision printString. |
116 |
workingCopy |
|
117 |
ifNotNil:[arg nextPut: path] |
|
118 |
ifNil:[arg nextPut: self url asString , '/' , path] |
|
3 | 119 |
|
120 |
"Created: / 02-04-2008 / 15:53:47 / janfrog" |
|
121 |
"Modified: / 19-08-2009 / 10:00:23 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
725 | 122 |
"Modified: / 02-01-2010 / 13:19:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
123 |
! |
|
124 |
||
125 |
svnCmdWorkdir |
|
126 |
^workingCopy |
|
127 |
ifNotNil: [workingCopy path pathName] |
|
128 |
ifNil: [super svnCmdWorkdir ] |
|
129 |
||
130 |
"Modified: / 02-01-2010 / 13:18:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
3 | 131 |
! |
132 |
||
133 |
svnProcessCommandOutput:stdOut err:stdErr |
|
134 |
^ stdOut contents |
|
135 |
||
136 |
"Created: / 03-10-2008 / 16:31:45 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
137 |
! ! |
|
138 |
||
139 |
!CatCommand methodsFor:'initialization'! |
|
140 |
||
141 |
initialize |
|
142 |
||
143 |
super initialize. |
|
144 |
revision := SVN::Revision head |
|
145 |
||
146 |
"Created: / 09-10-2008 / 20:35:59 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
147 |
! ! |
|
148 |
||
149 |
!CatCommand class methodsFor:'documentation'! |
|
150 |
||
151 |
version |
|
805
a64b96f60c50
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
725
diff
changeset
|
152 |
^ '$Header$' |
148 | 153 |
! |
154 |
||
155 |
version_SVN |
|
805
a64b96f60c50
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
725
diff
changeset
|
156 |
^ '§Id: SVN__CatCommand.st 363 2011-08-08 13:49:48Z vranyj1 §' |
3 | 157 |
! ! |