GitSourceCodeManager.st
author Claus Gittinger <cg@exept.de>
Thu, 05 Mar 2020 11:17:28 +0100
changeset 4561 eace75531554
parent 4286 3286be6412f3
permissions -rw-r--r--
#UI_ENHANCEMENT by cg class: SourceCodeManagerUtilities changed: #compareClassWithRepository:askForRevision: typos: genitive of class is class's - not classes.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2012 by Claus Gittinger
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
4253
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
     7
 inclusion of the above copyright notice.  This software may not
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libbasic3' }"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
3978
f41428f4ff65 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3600
diff changeset
    14
"{ NameSpace: Smalltalk }"
f41428f4ff65 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3600
diff changeset
    15
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
AbstractSourceCodeManager subclass:#GitSourceCodeManager
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:'Verbose DefaultRepository PerModuleRepositories DisabledModules
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
		RecentlyCheckedModulesAndPackages GitCommandTimeout GitTempDir
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
		GitCommandSemaphore GitExecutable GitCommitOptions
2789
f671169563e7 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
    21
		GitUpdateOptions WorkDirectory'
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
	poolDictionaries:''
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
	category:'System-SourceCodeManagement'
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
!GitSourceCodeManager class methodsFor:'documentation'!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
copyright
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 COPYRIGHT (c) 2012 by Claus Gittinger
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
              All Rights Reserved
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 This software is furnished under a license and may be used
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 only in accordance with the terms of that license and with the
4253
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
    35
 inclusion of the above copyright notice.  This software may not
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
 be provided or otherwise made available to, or used by, any
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
 other person.  No title to or ownership of the software is
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
 hereby transferred.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
documentation
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
"
3571
c4bc660c4640 documentation
Claus Gittinger <cg@exept.de>
parents: 3458
diff changeset
    44
    Attention: this will be removed soon - it has been obsoleted by the
c4bc660c4640 documentation
Claus Gittinger <cg@exept.de>
parents: 3458
diff changeset
    45
    new mercurial support found in libscm/mercurial.
c4bc660c4640 documentation
Claus Gittinger <cg@exept.de>
parents: 3458
diff changeset
    46
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
    SourceCodeManager which accesses the sourcecode through Git.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    ongoing work - unfinished and unusable
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    Comment:
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
        The code here is a copy-paste mess; it definitely needs some cleanup...
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
    [author:]
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
        Claus Gittinger
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
    [see also:]
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
! !
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
!GitSourceCodeManager class methodsFor:'initialization'!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
forgetDisabledModules
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    DisabledModules := nil.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
4049
7cc69ea18451 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4043
diff changeset
    66
gitCommandSemaphore
7cc69ea18451 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4043
diff changeset
    67
    GitCommandSemaphore isNil ifTrue:[
7cc69ea18451 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4043
diff changeset
    68
        GitCommandSemaphore := (Semaphore new:10) name:'Concurrent GIT Commands'.    "/ at most 10 git activities concurrently
7cc69ea18451 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4043
diff changeset
    69
    ].
7cc69ea18451 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4043
diff changeset
    70
    ^ GitCommandSemaphore
7cc69ea18451 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4043
diff changeset
    71
!
7cc69ea18451 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4043
diff changeset
    72
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
initialize
3107
e84a189e6b16 class: GitSourceCodeManager
Stefan Vogel <sv@exept.de>
parents: 2920
diff changeset
    74
    | s |
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
4049
7cc69ea18451 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4043
diff changeset
    76
    "/ GitCommandSemaphore := (Semaphore new:10) name:'Concurrent GIT Commands'.    "/ at most 10 git activities concurrently
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    GitCommitOptions := ''.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
    GitUpdateOptions := ''.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    DisabledModules := nil.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
    PerModuleRepositories isNil ifTrue:[
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
        PerModuleRepositories := Dictionary new.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
    ].
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
2812
69143eafd6fc do not check scm-command at class-init time
Claus Gittinger <cg@exept.de>
parents: 2789
diff changeset
    84
    "/ will do that lazy later, to avoid making startup slower and slower...
69143eafd6fc do not check scm-command at class-init time
Claus Gittinger <cg@exept.de>
parents: 2789
diff changeset
    85
"/    ok := OperatingSystem canExecuteCommand:(self gitExecutable).
69143eafd6fc do not check scm-command at class-init time
Claus Gittinger <cg@exept.de>
parents: 2789
diff changeset
    86
"/    ok ifFalse:[
69143eafd6fc do not check scm-command at class-init time
Claus Gittinger <cg@exept.de>
parents: 2789
diff changeset
    87
"/        'GitSourceCodeManager [warning]: disabled because no >>git<< command was found' infoPrintCR.
69143eafd6fc do not check scm-command at class-init time
Claus Gittinger <cg@exept.de>
parents: 2789
diff changeset
    88
"/        ^ self
69143eafd6fc do not check scm-command at class-init time
Claus Gittinger <cg@exept.de>
parents: 2789
diff changeset
    89
"/    ].
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
    "/
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
    "/ optionally set the WorkTreeDirectoryName from $STX_WORKTREE;
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
    "/ if non-nil, a working tree is kept there
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
    "/ and updated/commited files are not removed.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
    "/ If you use a regular (make-) tree, 
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
    "/ set WorkTreeDirectoryName (or the environment variable) to that.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
    "/
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
    "/ this is not yet finished.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    "/
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    s := OperatingSystem getEnvironment:'STX_WORKTREE'.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
    s notNil ifTrue:[
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
        WorkTreeDirectoryName := s.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
        UseWorkTree := true.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
    ]
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
    "
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
     AbstractSourceCodeManager initialize
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
     GitSourceCodeManager initialize
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
    "
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
    "Created: / 04-11-1995 / 19:14:38 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
    "Modified: / 19-12-1995 / 14:25:46 / stefan"
2812
69143eafd6fc do not check scm-command at class-init time
Claus Gittinger <cg@exept.de>
parents: 2789
diff changeset
   113
    "Modified (comment): / 20-03-2012 / 19:05:00 / cg"
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
initializeForRepository:aDirectoryName
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
    "reinitialize. 
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
     Can be used from the launcher to change/configure the repository."
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
2787
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   120
    |dir|
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   121
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
    self repositoryName:aDirectoryName.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
    AbstractSourceCodeManager initialize.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
    GitSourceCodeManager initialize.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
2787
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   126
    (dir := aDirectoryName asFilename) exists ifFalse:[
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   127
        dir recursiveMakeDirectory.
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   128
    ].
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   129
    (dir construct:'.git') exists ifFalse:[
2839
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   130
        self executeGitCommand:'init' inDirectory:dir
2787
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   131
    ].
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   132
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
    "Created: / 13-08-1997 / 17:20:57 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
    "Modified: / 25-09-1997 / 12:28:05 / stefan"
2839
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   135
    "Modified: / 23-07-2012 / 16:16:57 / cg"
2787
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   136
!
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   137
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   138
initializeRepository
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   139
    self initializeForRepository:(self repositoryName)
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   140
19b0b0144157 added: #isGit
Claus Gittinger <cg@exept.de>
parents: 2778
diff changeset
   141
    "Created: / 02-03-2012 / 16:56:21 / cg"
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
! !
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
!GitSourceCodeManager class methodsFor:'accessing'!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
2839
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   146
executeGitCommand:cmd inDirectory:dir
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   147
    |retCode out err|
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   148
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   149
    retCode := self 
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   150
        executeGitCommand:cmd 
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   151
        outputTo:(out := WriteStream on:(String new:100)) 
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   152
        errorTo:(err := WriteStream on:(String new:100))     
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   153
        inDirectory:dir.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   154
    retCode ifFalse:[
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   155
        Transcript showCR:'-----------------------------------------------'.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   156
        Transcript showCR:'out:'.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   157
        Transcript showCR:out contents.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   158
        Transcript showCR:'err:'.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   159
        Transcript showCR:err contents.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   160
    ].
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   161
    ^ retCode
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   162
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   163
    "Created: / 23-07-2012 / 16:17:06 / cg"
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   164
!
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   165
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   166
executeGitCommand:cmd outputTo:outStreamOrNil errorTo:errStreamOrNil inDirectory:dir
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   167
    ^ OperatingSystem 
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   168
        executeCommand:'git ',cmd 
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   169
        outputTo:outStreamOrNil 
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   170
        errorTo:errStreamOrNil     
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   171
        inDirectory:dir asFilename pathName.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   172
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   173
    "Created: / 24-07-2012 / 09:33:29 / cg"
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   174
!
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   175
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
gitBinDirectory:ignoredString 
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
    "ignored - for backward compatibility (to read old settings files)"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
    "Created: / 14-01-2012 / 20:49:46 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
gitCommandTimeout
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
    ^ GitCommandTimeout ? ("360" 120 seconds)
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
    "Modified (comment): / 08-01-2012 / 19:02:44 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
    "Created: / 02-03-2012 / 15:23:40 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
gitCommandTimeout:aTimeDuration
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
    GitCommandTimeout := aTimeDuration asTimeDuration.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
    "Created: / 02-03-2012 / 15:23:46 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
gitCommitOptions
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
    ^ GitCommitOptions ? ''
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
    "Created: / 02-03-2012 / 15:23:51 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
gitCommitOptions:aString 
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
    GitCommitOptions := aString.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
    "Created: / 02-03-2012 / 15:23:57 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
gitExecutable
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
    "return the name of the git executable."
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
    ^ GitExecutable ? 'git'
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
    "Created: / 02-03-2012 / 15:24:02 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
gitExecutable:aString
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
    "set the name of the git executable."
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
4253
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   217
    GitExecutable := aString isEmptyOrNil ifTrue:[
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   218
        nil
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   219
    ] ifFalse:[
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   220
        aString
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   221
    ].
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   223
    "Modified: / 21-09-2006 / 16:41:33 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   224
    "Created: / 02-03-2012 / 15:24:07 / cg"
4253
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   225
    "Modified: / 03-08-2017 / 22:44:40 / mawalch"
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
gitTmpDirectory
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
    "return the name of the tmp repository.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
     That's the directory, where temporary files are created for checkin/checkout.
2920
23a63370b272 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 2850
diff changeset
   231
     If nil, the system's default tempDirectory is used."
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
    ^ (GitTempDir ? Filename tempDirectory pathName)
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
    "
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
     CVSTempDir := nil   
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
    "
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
    "Created: / 02-03-2012 / 15:24:12 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
gitTmpDirectory:aPathNameString
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
    "set the name of the tmp repository.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
     That's the directory, where temporary files are created for checkin/checkout.
2920
23a63370b272 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 2850
diff changeset
   245
     If nil, the system's default tempDirectory is used."
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
    GitTempDir := aPathNameString
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
    "Created: / 02-03-2012 / 15:24:18 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
gitUpdateOptions
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
    ^ GitUpdateOptions ? ''
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
    "Created: / 02-03-2012 / 15:24:24 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
gitUpdateOptions:aString 
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
    GitUpdateOptions := aString.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   260
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
    "Created: / 02-03-2012 / 15:24:28 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
knownModules
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
    "return the modules, we currently know"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
    PerModuleRepositories isEmptyOrNil ifTrue:[^ #() ].
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
    ^ PerModuleRepositories keys
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
    "Modified: / 14-01-2012 / 21:23:37 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
knownRepositories
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
    "return the modules, we currently know"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   275
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
    ^ PerModuleRepositories values copyWith:DefaultRepository
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
    "Modified: / 14-01-2012 / 21:23:59 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   280
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
repositoryForPackage:packageId
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
    "superclass AbstractSourceCodeManager class says that I am responsible to implement this method"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
    ^self getGitRepositoryForModule: ( packageId upTo:$:)
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
    "Modified: / 10-10-2011 / 19:38:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
    "Modified: / 02-03-2012 / 15:25:19 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   289
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
repositoryInfoPerModule
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
    "return the dictionary, which associates gitRepositories to module names.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
     If no entry is contained in this dictionary for some module,
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   293
     the default crepository will be used."
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   295
    ^ PerModuleRepositories ? #()
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
    "Modified (comment): / 02-03-2012 / 15:25:28 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
repositoryInfoPerModule:aDictionary
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
    "set the dictionary, which associates repositories to module names.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
     If no entry is contained in this dictionary for some module,
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
     the default repository will be used."
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
    PerModuleRepositories := aDictionary
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
    "Modified: / 14-01-2012 / 21:25:21 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   309
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
repositoryName
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
    "return the name of the global repository.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
     This is used, if no per-module repository is defined."
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
    ^ DefaultRepository
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
    "Created: / 14-09-1996 / 13:22:05 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
    "Modified: / 14-01-2012 / 21:25:42 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
repositoryName:aDirectoryName
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
    "set the name of the repository;
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
     that's the name of the global repository, which is used 
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
     if no specific repository was defined for a module."
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
    DisabledModules := nil.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
    DefaultRepository := aDirectoryName.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
    "Created: / 14-09-1996 / 13:22:24 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
    "Modified: / 14-01-2012 / 21:26:17 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
repositoryName:aRepositoryName forModule:aModuleName
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
    "set the repository which provides the sources for all 
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
     classes in a particular module.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
     This can be used from an rc-script, to specify a repository
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
     for a particular module.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
     If left unspecified, the global (i.e. fallBack) repository is used."
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
    DisabledModules := nil.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
    PerModuleRepositories at:aModuleName put:aRepositoryName
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
    "Modified (comment): / 14-01-2012 / 21:27:08 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   343
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   344
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   345
repositoryNameForModule:aModuleName
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   346
    "return the repository which provides the sources for all 
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   347
     classes in a particular module.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   348
     Nil is returned for unspecified moduleRoots; in this case, 
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   349
     the global (i.e. fallBack) repository will be used for source access."
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   350
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   351
    ^ PerModuleRepositories at:aModuleName ifAbsent:nil.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   352
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   353
    "Created: / 19-09-1997 / 06:13:06 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   354
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   355
2850
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   356
repositoryNameForPackage:packageId     
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   357
    ^ self repositoryNameForModule:(packageId upTo:$:)
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   358
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   359
    "Created: / 10-10-2011 / 19:44:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2850
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   360
    "Modified (format): / 25-07-2012 / 18:23:06 / cg"
2789
f671169563e7 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
   361
!
f671169563e7 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
   362
f671169563e7 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
   363
workDirectory
f671169563e7 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
   364
    ^ WorkDirectory
f671169563e7 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
   365
f671169563e7 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
   366
    "Created: / 03-03-2012 / 11:08:29 / cg"
f671169563e7 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
   367
!
f671169563e7 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
   368
f671169563e7 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
   369
workDirectory:aPath
f671169563e7 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
   370
    WorkDirectory := aPath
f671169563e7 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
   371
f671169563e7 changed: #helpSpec
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
   372
    "Created: / 03-03-2012 / 11:08:37 / cg"
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
! !
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   374
4253
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   375
!GitSourceCodeManager class methodsFor:'basic access'!
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   376
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   377
checkinClass:aClassOrNil fileName:classFileName directory:packageDir module:moduleDir source:sourceFileOrNil logMessage:logMessage force:force
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   378
    "checkin of a class into the source repository.
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   379
     Return true if ok, false if not."
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   380
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   381
    |path relPath logArg out err|
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   382
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   383
    relPath := (moduleDir asFilename construct:packageDir) construct:classFileName.
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   384
    path := self repositoryName asFilename construct:relPath.
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   385
    sourceFileOrNil notNil ifTrue:[
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   386
        sourceFileOrNil asFilename moveTo: path.
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   387
    ].
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   388
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   389
    (self executeGitCommand:'add ',relPath name inDirectory:self repositoryName) ifFalse:[
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   390
        self halt:'git command failed'
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   391
    ].
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   392
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   393
    out := WriteStream on:(String new:100).
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   394
    err := WriteStream on:(String new:100).
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   395
    (self executeGitCommand:'status --porcelain' outputTo:out errorTo:err inDirectory:self repositoryName) ifFalse:[
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   396
        self halt:'git command failed'
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   397
    ].
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   398
    (out contents withoutSeparators isEmptyOrNil) ifTrue:[
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   399
        (err contents withoutSeparators isEmptyOrNil) ifTrue:[
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   400
            "/ nothing to commit
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   401
            ^ true
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   402
        ].
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   403
    ].
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   404
    logArg := logMessage copyReplaceAll:$" withAll:''''''.
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   405
    (self executeGitCommand:'commit -m "',logArg,'"' inDirectory:self repositoryName) ifFalse:[
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   406
        self halt:'git command failed'
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   407
    ].
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   408
    ^ true
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   409
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   410
    "Created: / 23-07-2012 / 20:05:14 / cg"
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   411
! !
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   412
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   413
!GitSourceCodeManager class methodsFor:'basic administration'!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   414
2850
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   415
addFile:fileName inDirectory:dirPath
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   416
    self executeGitCommand:('add "',fileName,'"') inDirectory:dirPath
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   417
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   418
    "Created: / 25-07-2012 / 23:07:57 / cg"
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   419
!
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   420
4221
cee13a0ac0d8 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4049
diff changeset
   421
checkForExistingContainer:fileName inModule:moduleName directory:packageDirName
cee13a0ac0d8 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4049
diff changeset
   422
    "check for a container to exist. Return a boolean result."
2839
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   423
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   424
    |path subDir|
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   425
4221
cee13a0ac0d8 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4049
diff changeset
   426
    path := (self repositoryName asFilename construct:moduleName) construct:packageDirName.
2839
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   427
    path exists ifFalse:[
4221
cee13a0ac0d8 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4049
diff changeset
   428
        subDir := moduleName asFilename construct:packageDirName.
2839
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   429
        self executeGitCommand:'checkout ',subDir name inDirectory:self repositoryName.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   430
    ].
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   431
    ^ (path construct:fileName) exists
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   432
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   433
    "Created: / 23-07-2012 / 16:21:02 / cg"
4221
cee13a0ac0d8 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4049
diff changeset
   434
    "Modified (format): / 24-02-2017 / 11:32:22 / cg"
2839
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   435
!
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   436
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   437
checkForExistingModule:moduleName
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   438
    "check for a module to be present"
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   439
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   440
    |path subDir|
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   441
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   442
    path := self repositoryName asFilename construct:moduleName.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   443
    path exists ifFalse:[
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   444
        subDir := moduleName asFilename.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   445
        self executeGitCommand:'checkout ',subDir name inDirectory:self repositoryName.
3310
abb2ad401f9b class: GitSourceCodeManager
Claus Gittinger <cg@exept.de>
parents: 3107
diff changeset
   446
        self breakPoint:#cg.
2839
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   447
    ].
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   448
    ^ path exists
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   449
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   450
    "Created: / 23-07-2012 / 18:44:27 / cg"
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   451
!
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   452
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   453
checkForExistingModule:moduleName directory:packageDir
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   454
    "check for a package directory to be present"
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   455
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   456
    |path subDir|
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   457
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   458
    path := (self repositoryName asFilename construct:moduleName) construct:packageDir.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   459
    path exists ifFalse:[
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   460
        subDir := moduleName asFilename construct:packageDir.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   461
        self executeGitCommand:'checkout ',subDir name inDirectory:self repositoryName.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   462
    ].
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   463
    ^ path exists
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   464
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   465
    "Created: / 23-07-2012 / 19:07:34 / cg"
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   466
!
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   467
4286
3286be6412f3 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4253
diff changeset
   468
checkin:containerFilename text:someText directory:packageDir module:moduleDir logMessage:logMessage force:force onBranch:branchNameOrNil
2850
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   469
    |path relPath|
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   470
4286
3286be6412f3 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4253
diff changeset
   471
    branchNameOrNil notNil ifTrue:[self error:'branches are not yet supported'].
3286be6412f3 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4253
diff changeset
   472
    
2850
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   473
    relPath := (moduleDir asFilename construct:packageDir) construct:containerFilename.
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   474
    path := self repositoryName asFilename construct:relPath.
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   475
    path contents: someText.
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   476
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   477
    ^ self checkinClass:nil 
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   478
        fileName:containerFilename 
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   479
        directory:packageDir 
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   480
        module:moduleDir
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   481
        source:nil
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   482
        logMessage:logMessage 
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   483
        force:force
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   484
4286
3286be6412f3 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4253
diff changeset
   485
    "Created: / 05-12-2017 / 23:28:56 / cg"
2850
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   486
!
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   487
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   488
commitRepository:repositoryDirectory logMessage:logMessage
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   489
    |logArg|
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   490
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   491
    self 
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   492
        executeGitCommand:('status') 
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   493
        outputTo:Transcript 
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   494
        errorTo:Transcript     
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   495
        inDirectory:repositoryDirectory.
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   496
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   497
    logArg := logMessage copyReplaceAll:$" withAll:''''''.
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   498
    self 
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   499
        executeGitCommand:('commit -m "',logArg,'"') 
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   500
        outputTo:Transcript 
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   501
        errorTo:Transcript     
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   502
        inDirectory:repositoryDirectory.
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   503
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   504
    "Created: / 25-07-2012 / 22:47:57 / cg"
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   505
!
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   506
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
createContainerFor:aClass inModule:moduleName directory:dirName container:fileName
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
    "create a new container & check into it an initial version of aClass"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
    ^ self shouldImplement
2839
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   511
!
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   512
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   513
createModule:moduleName
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   514
    "create a new module directory"
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   515
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   516
    |dir|
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   517
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   518
    dir := self repositoryName asFilename construct:moduleName.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   519
    dir exists ifTrue:[^ true].
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   520
    dir recursiveMakeDirectory.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   521
    ^ dir exists.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   522
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   523
    "Created: / 23-07-2012 / 19:04:51 / cg"
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   524
!
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   525
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   526
createModule:moduleName directory:directory
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   527
    "create a new package directory"
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   528
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   529
    |dir|
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   530
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   531
    dir := (self repositoryName asFilename construct:moduleName) construct:directory.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   532
    dir exists ifTrue:[^ true].
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   533
    dir recursiveMakeDirectory.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   534
    ^ dir exists.
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   535
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   536
    "Created: / 23-07-2012 / 19:08:22 / cg"
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   537
!
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   538
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   539
initialRevisionStringFor:aClass inModule:moduleDir directory:packageDir container:fileName
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   540
    "return a string usable as initial revision string"
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   541
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   542
    ^ self 
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   543
        revisionStringFor:aClass 
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   544
        inModule:moduleDir 
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   545
        directory:packageDir 
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   546
        container:fileName 
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   547
        revision:'1'
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   548
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   549
    "Created: / 23-07-2012 / 18:40:25 / cg"
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   550
!
8e8c0d2bb8ee added:13 methods
Claus Gittinger <cg@exept.de>
parents: 2812
diff changeset
   551
2850
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   552
updateRepository:repositoryDirectory
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   553
    self executeGitCommand:'update' inDirectory:repositoryDirectory
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   554
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   555
    "Created: / 25-07-2012 / 18:55:56 / cg"
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
! !
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
!GitSourceCodeManager class methodsFor:'debugging'!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
verboseSourceCodeAccess
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
    ^ Verbose ? false
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   563
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   564
verboseSourceCodeAccess:aBoolean
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   565
    Verbose := aBoolean
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   566
! !
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   567
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
!GitSourceCodeManager class methodsFor:'queries'!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   569
2850
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   570
isContainerBased
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   571
    ^ false
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   572
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   573
    "Created: / 24-07-2012 / 18:21:32 / cg"
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   574
!
4b3dec16d86b initial implementation for package checkin
Claus Gittinger <cg@exept.de>
parents: 2839
diff changeset
   575
3458
0b37c5ee38ac merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 3310
diff changeset
   576
isExperimental
0b37c5ee38ac merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 3310
diff changeset
   577
    ^ true
0b37c5ee38ac merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 3310
diff changeset
   578
0b37c5ee38ac merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 3310
diff changeset
   579
    "Created: / 21-01-2013 / 09:10:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
0b37c5ee38ac merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 3310
diff changeset
   580
!
0b37c5ee38ac merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 3310
diff changeset
   581
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   582
isResponsibleForPackage:aString
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   583
    ^true.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   584
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   585
    "Created: / 09-07-2011 / 14:32:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   586
    "Modified (comment): / 02-03-2012 / 15:05:14 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   587
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   588
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   589
managerTypeName
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   590
    ^ 'Git'
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   591
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   592
    "Created: / 16-08-2006 / 11:05:56 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   595
nameOfVersionMethodForExtensions
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   596
    ^ #'extensionsVersion_Git'
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   597
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   598
    "Modified: / 02-03-2012 / 15:05:02 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   599
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   600
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   601
nameOfVersionMethodInClasses
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   602
    ^ #'version_Git'
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   604
    "Modified: / 02-03-2012 / 15:04:56 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   605
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   606
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
settingsApplicationClass
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
    "link to my settings application (needed for the settings dialog"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   610
    ^ GitSourceCodeManagementSettingsAppl
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   612
    "Created: / 19-04-2011 / 12:43:29 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   613
    "Modified: / 02-03-2012 / 15:04:50 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   614
! !
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   615
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   616
!GitSourceCodeManager class methodsFor:'saving'!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   618
savePreferencesOn:aStream
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   619
    aStream nextPutLine:'GitSourceCodeManager notNil ifTrue:['.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
    self repositoryInfoPerModule notEmptyOrNil ifTrue:[
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   621
        aStream nextPutLine:'    GitSourceCodeManager repositoryInfoPerModule:' , self repositoryInfoPerModule storeString , '.'.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   622
    ].
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   623
    GitExecutable notNil ifTrue:[
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   624
        aStream nextPutLine:'    GitSourceCodeManager gitExecutable:' , GitExecutable storeString , '.'.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
    ].
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
    (Smalltalk at:#SourceCodeManager) == self ifTrue:[
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   627
        aStream nextPutLine:'    Smalltalk at:#SourceCodeManager put: GitSourceCodeManager.'.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   628
        aStream nextPutLine:'    GitSourceCodeManager initializeForRepository:' , self repositoryName storeString , '.'.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   629
    ] ifFalse:[
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   630
        aStream nextPutLine:'    GitSourceCodeManager repositoryName:' , self repositoryName storeString , '.'.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   631
    ].
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   632
    aStream nextPutLine:'].'.
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   633
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   634
    "Created: / 09-11-2006 / 15:09:25 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   635
    "Modified: / 02-03-2012 / 15:17:42 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   636
! !
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   637
4253
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   638
!GitSourceCodeManager class methodsFor:'source code administration'!
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   639
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   640
revisionInfoFromString:aString 
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   641
    "{ Pragma: +optSpace }"
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   642
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   643
    "return a VersionInfo object filled with revision info.
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   644
     This extracts the relevant info from aString."
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   645
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   646
    ^ self revisionInfoFromStandardVersionString:aString
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   647
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   648
    "
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   649
     self revisionInfoFromString:'Path: stx/libbasic/Array.st, Version: 123, User: cg, Time: 2011-12-21T21:03:08.826' 
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   650
    "
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   651
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   652
    "Created: / 23-07-2012 / 19:02:56 / cg"
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   653
! !
cbd2986e43de #OTHER by mawalch
mawalch
parents: 4221
diff changeset
   654
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   655
!GitSourceCodeManager class methodsFor:'testing'!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   656
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   657
isGit
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   658
    ^ true
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   659
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   660
    "Created: / 02-03-2012 / 15:17:19 / cg"
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   661
! !
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   662
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   663
!GitSourceCodeManager class methodsFor:'documentation'!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   664
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   665
version
3978
f41428f4ff65 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3600
diff changeset
   666
    ^ '$Header$'
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   667
!
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   668
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   669
version_CVS
3978
f41428f4ff65 #TUNING by cg
Claus Gittinger <cg@exept.de>
parents: 3600
diff changeset
   670
    ^ '$Header$'
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   671
! !
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   672
3107
e84a189e6b16 class: GitSourceCodeManager
Stefan Vogel <sv@exept.de>
parents: 2920
diff changeset
   673
2778
2aca22a7fff3 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   674
GitSourceCodeManager initialize!