SVN__CheckoutCommand.st
author Claus Gittinger <cg@exept.de>
Fri, 18 Nov 2016 16:14:26 +0100
changeset 1180 92753f6cc822
parent 838 4064875e3997
permissions -rw-r--r--
#REFACTORING by cg class: SVNSourceCodeManager SVNVersionInfo is private
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
749
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
     1
"
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
     2
 Copyright (c) 2007-2010 Jan Vrany
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
     3
 Copyright (c) 2009-2010 eXept Software AG
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
     4
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
     5
 Permission is hereby granted, free of charge, to any person
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
     6
 obtaining a copy of this software and associated documentation
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
     7
 files (the 'Software'), to deal in the Software without
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
     8
 restriction, including without limitation the rights to use,
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
     9
 copy, modify, merge, publish, distribute, sublicense, and/or sell
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    10
 copies of the Software, and to permit persons to whom the
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    11
 Software is furnished to do so, subject to the following
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    12
 conditions:
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    13
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    14
 The above copyright notice and this permission notice shall be
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    15
 included in all copies or substantial portions of the Software.
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    16
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    17
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    18
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    19
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    20
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    21
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    22
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    23
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    24
 OTHER DEALINGS IN THE SOFTWARE.
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    25
"
429
a243e3368c63 *** empty log message ***
fm
parents: 312
diff changeset
    26
"{ Package: 'stx:libsvn' }"
92
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    27
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    28
"{ NameSpace: SVN }"
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    29
492
74ff0960961c *** empty log message ***
fm
parents: 429
diff changeset
    30
UpdateLikeCommand subclass:#CheckoutCommand
92
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    31
	instanceVariableNames:''
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    32
	classVariableNames:''
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    33
	poolDictionaries:''
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    34
	category:'SVN-Private-Commands'
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    35
!
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    36
749
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    37
!CheckoutCommand class methodsFor:'documentation'!
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    38
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    39
copyright
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    40
"
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    41
 Copyright (c) 2007-2010 Jan Vrany
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    42
 Copyright (c) 2009-2010 eXept Software AG
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    43
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    44
 Permission is hereby granted, free of charge, to any person
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    45
 obtaining a copy of this software and associated documentation
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    46
 files (the 'Software'), to deal in the Software without
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    47
 restriction, including without limitation the rights to use,
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    48
 copy, modify, merge, publish, distribute, sublicense, and/or sell
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    49
 copies of the Software, and to permit persons to whom the
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    50
 Software is furnished to do so, subject to the following
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    51
 conditions:
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    52
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    53
 The above copyright notice and this permission notice shall be
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    54
 included in all copies or substantial portions of the Software.
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    55
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    56
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    57
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    58
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    59
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    60
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    61
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    62
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    63
 OTHER DEALINGS IN THE SOFTWARE.
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    64
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    65
"
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    66
! !
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    67
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    68
!CheckoutCommand class methodsFor:'others'!
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    69
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    70
version_CVS
838
4064875e3997 checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 749
diff changeset
    71
    ^ '$Header$'
749
bfe48a1eb888 Updates from SVN
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 492
diff changeset
    72
! !
92
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    73
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    74
!CheckoutCommand methodsFor:'executing - private'!
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    75
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    76
svnCmd
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    77
    "raise an error: must be redefined in concrete subclass(es)"
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    78
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    79
    ^'checkout'
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    80
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    81
    "Created: / 15-03-2008 / 23:48:44 / janfrog"
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    82
!
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    83
492
74ff0960961c *** empty log message ***
fm
parents: 429
diff changeset
    84
svnCmdArgumentsOn: arg
92
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    85
    "raise an error: must be redefined in concrete subclass(es)"
492
74ff0960961c *** empty log message ***
fm
parents: 429
diff changeset
    86
92
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    87
    super svnCmdArgumentsOn: arg.
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    88
    arg
492
74ff0960961c *** empty log message ***
fm
parents: 429
diff changeset
    89
	nextPut: self url asString;
74ff0960961c *** empty log message ***
fm
parents: 429
diff changeset
    90
	nextPut: '.'
92
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    91
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    92
    "Created: / 15-03-2008 / 23:48:44 / janfrog"
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    93
    "Modified: / 19-03-2008 / 12:44:01 / janfrog"
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    94
! !
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    95
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    96
!CheckoutCommand class methodsFor:'documentation'!
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    97
24cdd7ff423f initial checkin
fm
parents:
diff changeset
    98
version
838
4064875e3997 checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 749
diff changeset
    99
    ^ '$Header$'
225
a1a123c0d270 changed: #version_SVN
fm
parents: 92
diff changeset
   100
!
a1a123c0d270 changed: #version_SVN
fm
parents: 92
diff changeset
   101
a1a123c0d270 changed: #version_SVN
fm
parents: 92
diff changeset
   102
version_SVN
838
4064875e3997 checkin to get version methods correct
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 749
diff changeset
   103
    ^ '§Id: SVN__CheckoutCommand.st 363 2011-08-08 13:49:48Z vranyj1 §'
92
24cdd7ff423f initial checkin
fm
parents:
diff changeset
   104
! !