author | Claus Gittinger <cg@exept.de> |
Fri, 18 Nov 2016 16:14:26 +0100 | |
changeset 1180 | 92753f6cc822 |
parent 939 | 1c253f2e5e3c |
permissions | -rw-r--r-- |
696 | 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 |
" |
|
423 | 26 |
"{ Package: 'stx:libsvn' }" |
22 | 27 |
|
28 |
"{ NameSpace: SVN }" |
|
29 |
||
30 |
BranchCommand subclass:#LogCommand |
|
939 | 31 |
instanceVariableNames:'path limit' |
32 |
classVariableNames:'' |
|
33 |
poolDictionaries:'' |
|
34 |
category:'SVN-Private-Commands' |
|
22 | 35 |
! |
36 |
||
696 | 37 |
!LogCommand 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 |
!LogCommand class methodsFor:'others'! |
|
69 |
||
70 |
version_CVS |
|
837
2220ce094dae
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
696
diff
changeset
|
71 |
^ '$Header$' |
696 | 72 |
! ! |
22 | 73 |
|
74 |
!LogCommand methodsFor:'accessing'! |
|
75 |
||
939 | 76 |
limit |
77 |
^ limit |
|
78 |
! |
|
79 |
||
80 |
limit:something |
|
81 |
limit := something. |
|
82 |
! |
|
83 |
||
22 | 84 |
path |
85 |
^ path |
|
86 |
! |
|
87 |
||
88 |
path:aString |
|
89 |
path := aString. |
|
90 |
! ! |
|
91 |
||
92 |
!LogCommand methodsFor:'executing - private'! |
|
93 |
||
94 |
svnCmd |
|
95 |
"raise an error: must be redefined in concrete subclass(es)" |
|
96 |
||
97 |
^'log' |
|
98 |
||
99 |
"Created: / 11-04-2008 / 13:25:11 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
100 |
! |
|
101 |
||
102 |
svnCmdArgumentsOn: args |
|
103 |
args |
|
104 |
nextPut: '--verbose'; |
|
939 | 105 |
nextPut: '--xml'. |
106 |
limit notNil ifTrue:[ |
|
107 |
args nextPut: '--limit'. |
|
108 |
args nextPut: limit printString. |
|
109 |
]. |
|
110 |
revision notNil ifTrue:[ |
|
111 |
args nextPut: '--revision'. |
|
112 |
args nextPut: revision printString. |
|
113 |
]. |
|
114 |
args |
|
22 | 115 |
nextPut: self url , '/' , path |
116 |
||
117 |
"Created: / 11-04-2008 / 13:25:04 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
118 |
"Modified: / 19-08-2009 / 10:02:30 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
939 | 119 |
"Modified (format): / 15-10-2011 / 16:58:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
22 | 120 |
! |
121 |
||
122 |
svnParseXML: doc |
|
123 |
^ (doc root / 'logentry') asCollection |
|
124 |
collect: [:entryNode | RevisionLogEntry readFromXml: entryNode ] |
|
125 |
||
126 |
"Created: / 11-04-2008 / 13:26:20 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
127 |
"Modified: / 19-04-2008 / 18:48:52 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
128 |
! |
|
129 |
||
130 |
svnProcessCommandOutput:out err:err |
|
131 |
^ self svnParseXML:((XML::XMLParser on:out) |
|
132 |
validate:false; |
|
133 |
scanDocument) |
|
134 |
||
135 |
"Created: / 03-10-2008 / 16:31:45 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
136 |
! ! |
|
137 |
||
138 |
!LogCommand class methodsFor:'documentation'! |
|
139 |
||
140 |
version |
|
837
2220ce094dae
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
696
diff
changeset
|
141 |
^ '$Header$' |
141 | 142 |
! |
143 |
||
144 |
version_SVN |
|
939 | 145 |
^ '§Id: SVN__LogCommand.st 392 2011-10-15 15:23:37Z vranyj1 §' |
22 | 146 |
! ! |