SVN__Task.st
changeset 722 e3e85764a0d0
parent 480 d8216760f2c0
child 895 d715a4e5255f
--- a/SVN__Task.st	Mon Aug 08 15:20:13 2011 +0200
+++ b/SVN__Task.st	Mon Aug 08 15:21:29 2011 +0200
@@ -1,3 +1,28 @@
+"
+ Copyright (c) 2007-2010 Jan Vrany
+ Copyright (c) 2009-2010 eXept Software AG
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation
+ files (the 'Software'), to deal in the Software without
+ restriction, including without limitation the rights to use,
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following
+ conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
+"
 "{ Package: 'stx:libsvn' }"
 
 "{ NameSpace: SVN }"
@@ -9,6 +34,42 @@
 	category:'SVN-Tasks'
 !
 
+!Task class methodsFor:'documentation'!
+
+copyright
+"
+ Copyright (c) 2007-2010 Jan Vrany
+ Copyright (c) 2009-2010 eXept Software AG
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation
+ files (the 'Software'), to deal in the Software without
+ restriction, including without limitation the rights to use,
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following
+ conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
+
+"
+! !
+
+!Task class methodsFor:'others'!
+
+version_CVS
+    ^ '$ÂHeader: /cvs/stx/stx/libsvn/SVN__Task.st,v 1.4 2009/10/19 12:24:50 fm Exp Â$'
+! !
 
 !Task methodsFor:'accessing'!
 
@@ -94,21 +155,38 @@
     "Created: / 15-07-2009 / 20:07:14 / Jan Vrany <vranyj1@fel.cvut.cz>"
 !
 
-doCompileSvnRevisionNrMethod: compileRevision
-    | pkgDef revNr |
+doCompileSvnRepositoryUrlStringMethod
+    |pkgDef revNr|
 
-    SVN::ActivityNotification notify:'Compiling #svnRevisionNr method'.
+    ActivityNotification notify:'Compiling #svnRepositoryUrlString method'.
     pkgDef := self workingCopy packageDefinition.
-    revNr := compileRevision
-                ifTrue:[pkgDef svnRevision number]
-                ifFalse:[nil].
+    (pkgDef theMetaclass includesSelector:#svnRepositoryUrlString) not
+            ifTrue:[
+                pkgDef theMetaclass compile:(pkgDef svnRepositoryUrlString_code)
+                    classified:'description - svn'.
+                (pkgDef theMetaclass compiledMethodAt:#svnRepositoryUrlString) 
+                    setPackage:self package asSymbol
+            ].
+
+    "Created: / 08-04-2011 / 15:58:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
+doCompileSvnRevisionNrMethod:compileRevision 
+    |pkgDef revNr|
 
-    (revNr notNil or:[(pkgDef theMetaclass includesSelector:#svnRevisionNr) not]) ifTrue:
-        [pkgDef theMetaclass
-            compile: (pkgDef svnRevisionNr_code: revNr)
-            classified:'description - svn'.
-        (pkgDef theMetaclass compiledMethodAt:#svnRevisionNr) 
-            setPackage:self package asSymbol].
+    ActivityNotification notify:'Compiling #svnRevisionNr method'.
+    pkgDef := self workingCopy packageDefinition.
+    revNr := compileRevision ifTrue:[
+                pkgDef svnRevision number
+            ] ifFalse:[ nil ].
+    (revNr notNil 
+        or:[ (pkgDef theMetaclass includesSelector:#svnRevisionNr) not ]) 
+            ifTrue:[
+                pkgDef theMetaclass compile:(pkgDef svnRevisionNr_code:revNr)
+                    classified:'description - svn'.
+                (pkgDef theMetaclass compiledMethodAt:#svnRevisionNr) 
+                    setPackage:self package asSymbol
+            ].
 
     "Created: / 16-06-2009 / 12:16:25 / Jan Vrany <vranyj1@fel.cvut.cz>"
 ! !
@@ -134,13 +212,9 @@
 !Task class methodsFor:'documentation'!
 
 version
-    ^ '$Header$'
-!
-
-version_CVS
-    ^ '$Header$'
+    ^ '$Id$'
 !
 
 version_SVN
-    ^'§Id: SVN__Task.st 100 2009-07-15 18:35:02Z vranyj1 §'
+    ^ '§Id: SVN__Task.st 350 2011-07-07 18:42:56Z vranyj1 §'
 ! !