author | Claus Gittinger <cg@exept.de> |
Fri, 18 Nov 2016 16:14:26 +0100 | |
changeset 1180 | 92753f6cc822 |
parent 882 | 10a25f92804d |
permissions | -rw-r--r-- |
764 | 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 |
" |
|
426 | 26 |
"{ Package: 'stx:libsvn' }" |
70 | 27 |
|
28 |
"{ NameSpace: SVN }" |
|
29 |
||
492 | 30 |
WCCommand subclass:#MoveCommand |
70 | 31 |
instanceVariableNames:'src dst' |
32 |
classVariableNames:'' |
|
33 |
poolDictionaries:'' |
|
34 |
category:'SVN-Private-Commands' |
|
35 |
! |
|
36 |
||
764 | 37 |
!MoveCommand 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 |
!MoveCommand class methodsFor:'others'! |
|
69 |
||
70 |
version_CVS |
|
882
10a25f92804d
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
764
diff
changeset
|
71 |
^ '$Header$' |
764 | 72 |
! ! |
70 | 73 |
|
74 |
!MoveCommand methodsFor:'accessing'! |
|
75 |
||
76 |
dst |
|
77 |
^ dst |
|
78 |
||
79 |
"Created: / 16-03-2008 / 10:22:26 / janfrog" |
|
80 |
! |
|
81 |
||
82 |
dst:something |
|
83 |
dst := something. |
|
84 |
||
85 |
"Created: / 16-03-2008 / 10:22:26 / janfrog" |
|
86 |
! |
|
87 |
||
88 |
src |
|
89 |
^ src |
|
90 |
||
91 |
"Created: / 16-03-2008 / 10:22:26 / janfrog" |
|
92 |
! |
|
93 |
||
94 |
src:something |
|
95 |
src := something. |
|
96 |
||
97 |
"Created: / 16-03-2008 / 10:22:26 / janfrog" |
|
98 |
! ! |
|
99 |
||
100 |
!MoveCommand methodsFor:'executing - private'! |
|
101 |
||
102 |
svnCmd |
|
103 |
"raise an error: must be redefined in concrete subclass(es)" |
|
104 |
||
105 |
^'move' |
|
106 |
||
107 |
"Created: / 16-03-2008 / 10:22:26 / janfrog" |
|
108 |
! |
|
109 |
||
492 | 110 |
svnCmdArgumentsOn:arg |
70 | 111 |
"raise an error: must be redefined in concrete subclass(es)" |
112 |
||
764 | 113 |
| srcArg dstArg wcPath | |
114 |
wcPath := workingCopy path pathName. |
|
115 |
srcArg := (src startsWith: wcPath) |
|
116 |
ifTrue:[src copyFrom: wcPath size + 2] |
|
117 |
ifFalse:[src]. |
|
118 |
dstArg := (src startsWith: wcPath) |
|
119 |
ifTrue:[dst copyFrom: wcPath size + 2] |
|
120 |
ifFalse:[dst]. |
|
121 |
||
122 |
||
70 | 123 |
super svnCmdArgumentsOn:arg. |
492 | 124 |
arg |
764 | 125 |
nextPut: srcArg; |
126 |
nextPut: dstArg |
|
70 | 127 |
|
128 |
"Created: / 16-03-2008 / 10:22:26 / janfrog" |
|
764 | 129 |
"Modified: / 28-07-2010 / 22:29:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
70 | 130 |
! ! |
131 |
||
132 |
!MoveCommand class methodsFor:'documentation'! |
|
133 |
||
134 |
version |
|
882
10a25f92804d
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
764
diff
changeset
|
135 |
^ '$Header$' |
169 | 136 |
! |
137 |
||
138 |
version_SVN |
|
882
10a25f92804d
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
764
diff
changeset
|
139 |
^ '§Id: SVN__MoveCommand.st 363 2011-08-08 13:49:48Z vranyj1 §' |
70 | 140 |
! ! |