author | convert-repo |
Tue, 09 Aug 2016 03:35:30 +0000 | |
changeset 1178 | 3a6dad9479fd |
parent 910 | 610afdff6ef1 |
permissions | -rw-r--r-- |
765 | 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 |
" |
|
396 | 26 |
"{ Package: 'stx:libsvn' }" |
37 | 27 |
|
28 |
"{ NameSpace: SVN }" |
|
29 |
||
30 |
Entry subclass:#RepositoryEntry |
|
31 |
instanceVariableNames:'size branch' |
|
32 |
classVariableNames:'' |
|
33 |
poolDictionaries:'' |
|
34 |
category:'SVN-Repository' |
|
35 |
! |
|
36 |
||
765 | 37 |
!RepositoryEntry 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 |
! ! |
|
37 | 67 |
|
68 |
!RepositoryEntry class methodsFor:'instance creation'! |
|
69 |
||
70 |
readFromXml: anXMLNode |
|
71 |
||
72 |
^self new readFromXml: anXMLNode |
|
73 |
||
74 |
"Created: / 18-08-2009 / 17:24:10 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
75 |
"Modified: / 19-08-2009 / 08:51:48 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
76 |
! ! |
|
77 |
||
765 | 78 |
!RepositoryEntry class methodsFor:'others'! |
79 |
||
80 |
version_CVS |
|
910
610afdff6ef1
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
765
diff
changeset
|
81 |
^ '$Header$' |
765 | 82 |
! ! |
83 |
||
37 | 84 |
!RepositoryEntry methodsFor:'accessing'! |
85 |
||
86 |
branch |
|
87 |
^ branch |
|
88 |
! ! |
|
89 |
||
90 |
!RepositoryEntry methodsFor:'initialization'! |
|
91 |
||
92 |
readFromXml: anXMLNode |
|
93 |
||
94 |
kind := (NodeKind withName: anXMLNode @ 'kind'). |
|
95 |
path := (anXMLNode / 'name') characterData. |
|
765 | 96 |
revision := SVN::Revision number: ((anXMLNode / 'commit' ) first @ 'revision'). |
37 | 97 |
date := Timestamp readISO8601From: (anXMLNode / 'commit' / 'date') characterData. |
98 |
author := (anXMLNode / 'commit' / 'author') characterData. |
|
99 |
size := (anXMLNode / 'size') characterData. |
|
100 |
size isNilOrEmptyCollection ifFalse:[size := size asInteger] |
|
101 |
||
102 |
"Created: / 19-08-2009 / 08:52:10 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
103 |
"Modified: / 19-08-2009 / 15:07:46 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
104 |
! |
|
105 |
||
106 |
setBranch: aBranch |
|
107 |
||
108 |
branch := aBranch |
|
109 |
||
110 |
"Created: / 18-08-2009 / 13:15:16 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
111 |
! ! |
|
112 |
||
113 |
!RepositoryEntry class methodsFor:'documentation'! |
|
114 |
||
115 |
version |
|
910
610afdff6ef1
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
765
diff
changeset
|
116 |
^ '$Header$' |
219 | 117 |
! |
118 |
||
119 |
version_SVN |
|
910
610afdff6ef1
checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
765
diff
changeset
|
120 |
^ '§Id: SVN__RepositoryEntry.st 363 2011-08-08 13:49:48Z vranyj1 §' |
37 | 121 |
! ! |