author | Claus Gittinger <cg@exept.de> |
Tue, 16 Jan 2018 22:26:58 +0100 | |
changeset 1183 | 8af078552bae |
parent 904 | b4bd6c1c11fd |
permissions | -rw-r--r-- |
742 | 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 |
" |
|
477 | 26 |
"{ Package: 'stx:libsvn' }" |
39 | 27 |
|
28 |
"{ NameSpace: SVN }" |
|
29 |
||
492 | 30 |
WCPathCommand subclass:#StatusCommand |
39 | 31 |
instanceVariableNames:'' |
32 |
classVariableNames:'' |
|
33 |
poolDictionaries:'' |
|
34 |
category:'SVN-Private-Commands' |
|
35 |
! |
|
36 |
||
742 | 37 |
!StatusCommand 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 |
!StatusCommand class methodsFor:'others'! |
|
69 |
||
70 |
version_CVS |
|
904
b4bd6c1c11fd
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
742
diff
changeset
|
71 |
^ '$Header$' |
742 | 72 |
! ! |
39 | 73 |
|
74 |
!StatusCommand methodsFor:'executing - private'! |
|
75 |
||
76 |
svnCmd |
|
77 |
"raise an error: must be redefined in concrete subclass(es)" |
|
78 |
||
79 |
^'status' |
|
80 |
||
81 |
"Created: / 15-03-2008 / 21:56:01 / janfrog" |
|
82 |
! |
|
83 |
||
492 | 84 |
svnCmdArgumentsOn:arg |
39 | 85 |
"raise an error: must be redefined in concrete subclass(es)" |
86 |
||
492 | 87 |
arg |
88 |
nextPut:'--xml'; |
|
89 |
nextPut:'--verbose' |
|
39 | 90 |
|
91 |
"Created: / 15-03-2008 / 21:56:01 / janfrog" |
|
92 |
! |
|
93 |
||
94 |
svnParseXML: doc |
|
95 |
||
96 |
^((doc root childNodes anyOne childNodes |
|
492 | 97 |
collect: |
98 |
[:entryNode| |
|
99 |
(WCEntry readFromXml: entryNode) wc: workingCopy; yourself]) asSortedCollection:[:a :b|a path < b path]) |
|
100 |
asOrderedCollection |
|
39 | 101 |
|
102 |
"Created: / 15-03-2008 / 22:05:01 / janfrog" |
|
103 |
"Modified: / 16-03-2008 / 08:44:49 / janfrog" |
|
104 |
"Modified: / 18-08-2009 / 14:28:44 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
105 |
"Modified: / 27-08-2009 / 09:51:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
106 |
! |
|
107 |
||
492 | 108 |
svnProcessCommandOutput:out err:err |
39 | 109 |
^ self svnParseXML:((XML::XMLParser on:out) |
492 | 110 |
validate:false; |
111 |
scanDocument) |
|
39 | 112 |
|
113 |
"Created: / 03-10-2008 / 16:31:45 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
114 |
! ! |
|
115 |
||
116 |
!StatusCommand class methodsFor:'documentation'! |
|
117 |
||
118 |
version |
|
904
b4bd6c1c11fd
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
742
diff
changeset
|
119 |
^ '$Header$' |
227 | 120 |
! |
121 |
||
122 |
version_SVN |
|
904
b4bd6c1c11fd
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
742
diff
changeset
|
123 |
^ '§Id: SVN__StatusCommand.st 372 2011-09-29 10:47:58Z vranyj1 §' |
39 | 124 |
! ! |