22
|
1 |
"{ Package: 'cvut:stx/goodies/libsvn' }"
|
|
2 |
|
|
3 |
"{ NameSpace: SVN }"
|
|
4 |
|
|
5 |
BranchCommand subclass:#LogCommand
|
|
6 |
instanceVariableNames:'path'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'SVN-Private-Commands'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!LogCommand methodsFor:'accessing'!
|
|
14 |
|
|
15 |
path
|
|
16 |
^ path
|
|
17 |
!
|
|
18 |
|
|
19 |
path:aString
|
|
20 |
path := aString.
|
|
21 |
! !
|
|
22 |
|
|
23 |
!LogCommand methodsFor:'executing - private'!
|
|
24 |
|
|
25 |
svnCmd
|
|
26 |
"raise an error: must be redefined in concrete subclass(es)"
|
|
27 |
|
|
28 |
^'log'
|
|
29 |
|
|
30 |
"Created: / 11-04-2008 / 13:25:11 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
31 |
!
|
|
32 |
|
|
33 |
svnCmdArgumentsOn: args
|
|
34 |
args
|
|
35 |
nextPut: '--verbose';
|
|
36 |
nextPut: '--xml';
|
|
37 |
nextPut: self url , '/' , path
|
|
38 |
|
|
39 |
"Created: / 11-04-2008 / 13:25:04 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
40 |
"Modified: / 19-08-2009 / 10:02:30 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
41 |
!
|
|
42 |
|
|
43 |
svnParseXML: doc
|
|
44 |
^ (doc root / 'logentry') asCollection
|
|
45 |
collect: [:entryNode | RevisionLogEntry readFromXml: entryNode ]
|
|
46 |
|
|
47 |
"Created: / 11-04-2008 / 13:26:20 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
48 |
"Modified: / 19-04-2008 / 18:48:52 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
49 |
!
|
|
50 |
|
|
51 |
svnProcessCommandOutput:out err:err
|
|
52 |
^ self svnParseXML:((XML::XMLParser on:out)
|
|
53 |
validate:false;
|
|
54 |
scanDocument)
|
|
55 |
|
|
56 |
"Created: / 03-10-2008 / 16:31:45 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
57 |
! !
|
|
58 |
|
|
59 |
!LogCommand class methodsFor:'documentation'!
|
|
60 |
|
|
61 |
version
|
|
62 |
^ '$Header$'
|
141
|
63 |
!
|
|
64 |
|
|
65 |
version_CVS
|
|
66 |
^ '$Header$'
|
|
67 |
!
|
|
68 |
|
|
69 |
version_SVN
|
|
70 |
^'Id: SVN__LogCommand.st 110 2009-08-19 13:21:10Z vranyj1 '
|
22
|
71 |
! !
|