author | Merge Script |
Sat, 19 Nov 2016 06:53:11 +0100 | |
branch | jv |
changeset 1182 | 38600a7a9203 |
parent 819 | 367856a0163d |
permissions | -rw-r--r-- |
691 | 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 |
" |
|
470 | 26 |
"{ Package: 'stx:libsvn' }" |
14 | 27 |
|
28 |
"{ NameSpace: SVN }" |
|
29 |
||
492 | 30 |
UpdateLikeCommand subclass:#UpdateCommand |
691 | 31 |
instanceVariableNames:'paths setDepth' |
14 | 32 |
classVariableNames:'' |
33 |
poolDictionaries:'' |
|
34 |
category:'SVN-Private-Commands' |
|
35 |
! |
|
36 |
||
691 | 37 |
!UpdateCommand 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 |
!UpdateCommand class methodsFor:'others'! |
|
69 |
||
70 |
version_CVS |
|
819
367856a0163d
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
691
diff
changeset
|
71 |
^ '$Header$' |
691 | 72 |
! ! |
73 |
||
74 |
!UpdateCommand methodsFor:'accessing'! |
|
75 |
||
76 |
paths |
|
77 |
^ paths |
|
78 |
! |
|
79 |
||
80 |
paths:aCollection |
|
81 |
paths := aCollection. |
|
82 |
! |
|
83 |
||
84 |
setDepth:aString |
|
85 |
||
86 |
self assert: |
|
87 |
(#('empty' 'files' 'immediates' 'infinity') includes: aString). |
|
88 |
||
89 |
setDepth := aString. |
|
90 |
||
91 |
"Modified: / 23-04-2011 / 18:51:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
92 |
! ! |
|
14 | 93 |
|
94 |
!UpdateCommand methodsFor:'executing - private'! |
|
95 |
||
96 |
svnCmd |
|
97 |
"raise an error: must be redefined in concrete subclass(es)" |
|
98 |
||
99 |
^'update' |
|
100 |
||
101 |
"Created: / 16-03-2008 / 10:01:50 / janfrog" |
|
691 | 102 |
! |
103 |
||
104 |
svnCmdArgumentsOn:arg |
|
105 |
"raise an error: must be redefined in concrete subclass(es)" |
|
106 |
||
107 |
arg |
|
108 |
nextPut: '-r'; nextPut: self revision printString. |
|
109 |
setDepth ifNotNil:[ |
|
110 |
arg nextPut:'--set-depth'; nextPut: setDepth. |
|
111 |
]. |
|
112 |
depth ifNotNil:[ |
|
113 |
arg nextPut: '--depth'; nextPut: depth ? 'infinity'. |
|
114 |
]. |
|
115 |
arg nextPutAll:(paths ? #()) asArray |
|
116 |
||
117 |
"Created: / 10-12-2009 / 13:33:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
118 |
"Modified: / 25-04-2011 / 16:40:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
14 | 119 |
! ! |
120 |
||
121 |
!UpdateCommand class methodsFor:'documentation'! |
|
122 |
||
123 |
version |
|
819
367856a0163d
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
691
diff
changeset
|
124 |
^ '$Header$' |
179 | 125 |
! |
126 |
||
127 |
version_SVN |
|
819
367856a0163d
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
691
diff
changeset
|
128 |
^ '§Id: SVN__UpdateCommand.st 362 2011-08-08 13:07:42Z vranyj1 §' |
14 | 129 |
! ! |