author | fm |
Mon, 19 Oct 2009 14:24:44 +0200 | |
changeset 477 | 76a616efa545 |
parent 283 | 2d935efe1c24 |
child 492 | 74ff0960961c |
permissions | -rw-r--r-- |
477 | 1 |
"{ Package: 'stx:libsvn' }" |
39 | 2 |
|
3 |
"{ NameSpace: SVN }" |
|
4 |
||
477 | 5 |
nil subclass:#StatusCommand |
39 | 6 |
instanceVariableNames:'' |
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'SVN-Private-Commands' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!StatusCommand methodsFor:'executing - private'! |
|
14 |
||
15 |
svnCmd |
|
16 |
"raise an error: must be redefined in concrete subclass(es)" |
|
17 |
||
18 |
^'status' |
|
19 |
||
20 |
"Created: / 15-03-2008 / 21:56:01 / janfrog" |
|
21 |
! |
|
22 |
||
23 |
svnCmdArgumentsOn:arg |
|
24 |
"raise an error: must be redefined in concrete subclass(es)" |
|
25 |
||
26 |
arg |
|
27 |
nextPut:'--xml'; |
|
28 |
nextPut:'--verbose' |
|
29 |
||
30 |
"Created: / 15-03-2008 / 21:56:01 / janfrog" |
|
31 |
! |
|
32 |
||
33 |
svnParseXML: doc |
|
34 |
||
35 |
^((doc root childNodes anyOne childNodes |
|
36 |
collect: |
|
37 |
[:entryNode| |
|
38 |
(WCEntry readFromXml: entryNode) wc: workingCopy; yourself]) asSortedCollection:[:a :b|a path < b path]) |
|
39 |
asOrderedCollection |
|
40 |
||
41 |
"Created: / 15-03-2008 / 22:05:01 / janfrog" |
|
42 |
"Modified: / 16-03-2008 / 08:44:49 / janfrog" |
|
43 |
"Modified: / 18-08-2009 / 14:28:44 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
44 |
"Modified: / 27-08-2009 / 09:51:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
45 |
! |
|
46 |
||
47 |
svnProcessCommandOutput:out err:err |
|
48 |
^ self svnParseXML:((XML::XMLParser on:out) |
|
49 |
validate:false; |
|
50 |
scanDocument) |
|
51 |
||
52 |
"Created: / 03-10-2008 / 16:31:45 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
53 |
! ! |
|
54 |
||
55 |
!StatusCommand class methodsFor:'documentation'! |
|
56 |
||
57 |
version |
|
58 |
^ '$Header$' |
|
227 | 59 |
! |
60 |
||
61 |
version_CVS |
|
62 |
^ '$Header$' |
|
63 |
! |
|
64 |
||
65 |
version_SVN |
|
283
2d935efe1c24
update #version_SVN with § as keyword expansion character
fm
parents:
227
diff
changeset
|
66 |
^'§Id: SVN__StatusCommand.st 113 2009-08-28 11:43:01Z vranyj1 §' |
39 | 67 |
! ! |