mercurial/HG2CVS.st
author Claus Gittinger <cg@exept.de>
Sat, 30 Jun 2018 18:44:05 +0200
branchcvs_MAIN
changeset 831 eec6475ab243
parent 766 7bbb7b74b8b1
permissions -rw-r--r--
initial checkin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
342
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     1
"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     2
stx:libscm - a new source code management library for Smalltalk/X
509
f92210d4585b Updated copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 343
diff changeset
     3
Copyright (C) 2012-2015 Jan Vrany
342
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     4
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     5
This library is free software; you can redistribute it and/or
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     6
modify it under the terms of the GNU Lesser General Public
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     7
License as published by the Free Software Foundation; either
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     8
version 2.1 of the License. 
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     9
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    10
This library is distributed in the hope that it will be useful,
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    11
but WITHOUT ANY WARRANTY; without even the implied warranty of
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    13
Lesser General Public License for more details.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    14
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    15
You should have received a copy of the GNU Lesser General Public
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    16
License along with this library; if not, write to the Free Software
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    18
"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    19
"{ Package: 'stx:libscm/mercurial' }"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    20
766
7bbb7b74b8b1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 509
diff changeset
    21
"{ NameSpace: Smalltalk }"
7bbb7b74b8b1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 509
diff changeset
    22
342
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    23
Object subclass:#HG2CVS
343
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
    24
	instanceVariableNames:'srcRoot dstRoot script'
342
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    25
	classVariableNames:''
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    26
	poolDictionaries:''
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    27
	category:'SCM-Mercurial-CVS'
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    28
!
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    29
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    30
!HG2CVS class methodsFor:'documentation'!
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    31
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    32
copyright
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    33
"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    34
stx:libscm - a new source code management library for Smalltalk/X
509
f92210d4585b Updated copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 343
diff changeset
    35
Copyright (C) 2012-2015 Jan Vrany
342
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    36
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    37
This library is free software; you can redistribute it and/or
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    38
modify it under the terms of the GNU Lesser General Public
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    39
License as published by the Free Software Foundation; either
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    40
version 2.1 of the License. 
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    41
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    42
This library is distributed in the hope that it will be useful,
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    43
but WITHOUT ANY WARRANTY; without even the implied warranty of
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    44
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    45
Lesser General Public License for more details.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    46
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    47
You should have received a copy of the GNU Lesser General Public
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    48
License along with this library; if not, write to the Free Software
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    49
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    50
"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    51
!
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    52
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    53
documentation
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    54
"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    55
    A simple and naive tool to update CVS to match the Mercurial repository.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    56
    Yes, believe or not, there are still CVS repositories out there,
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    57
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    58
    [author:]
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    59
        Jan Vrany <jan.vrany@fit.cvut.cz>
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    60
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    61
    [instance variables:]
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    62
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    63
    [class variables:]
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    64
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    65
    [see also:]
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    66
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    67
"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    68
! !
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    69
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    70
!HG2CVS methodsFor:'accessing'!
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    71
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    72
dstRoot
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    73
    ^ dstRoot
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    74
!
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    75
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    76
dstRoot:something
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    77
    dstRoot := something.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    78
!
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    79
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    80
srcRoot
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    81
    ^ srcRoot
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    82
!
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    83
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    84
srcRoot:something
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    85
    srcRoot := something.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    86
! !
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    87
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    88
!HG2CVS methodsFor:'updating'!
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    89
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    90
add: file
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    91
    self cvs: 'add' files: { file } in: file directory.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    92
    file isDirectory ifTrue:[
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    93
        |  files dirs |
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    94
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    95
        files := OrderedCollection new.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    96
        dirs := OrderedCollection new.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    97
        file directoryContentsAsFilenamesDo:[:e|
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    98
            (self shouldIgnore: e baseName) ifFalse:[
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    99
               e isDirectory ifTrue:[
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   100
                   dirs add: e
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   101
                ] ifFalse:[
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   102
                    files add: e.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   103
                ]
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   104
            ]
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   105
        ].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   106
        self cvs: 'add' files: files in: file.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   107
        dirs do:[:e|self add: e].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   108
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   109
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   110
    ].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   111
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   112
    "Created: / 15-02-2013 / 11:04:05 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   113
    "Modified: / 15-02-2013 / 18:33:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   114
!
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   115
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   116
cvs: cmd files: files in: wd
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   117
    | filesAsString cmdLine |
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   118
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   119
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   120
    files isEmpty ifTrue:[ ^ self ].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   121
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   122
    filesAsString := String streamContents:[:s|
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   123
        files do:[:e|
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   124
            s nextPut: $'; nextPutAll: e baseName; nextPut: $'; space.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   125
        ]
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   126
    ].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   127
    cmdLine := ('cvs ', cmd ,' ', filesAsString).
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   128
    Transcript showCR: '  --> exec: ', cmdLine.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   129
343
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   130
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   131
    script := 
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   132
        script , Character cr ,
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   133
        ('pushd %1
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   134
%2
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   135
popd') bindWith: wd asString with: cmdLine.
342
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   136
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   137
    "Created: / 15-02-2013 / 12:27:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
343
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   138
    "Modified: / 06-09-2013 / 00:52:29 / Jan Vrany <jan.vrany@fit.cvut.cz>"
342
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   139
!
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   140
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   141
remove: file
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   142
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   143
    file isDirectory ifTrue:[
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   144
        file directoryContentsAsFilenamesDo:[:e|
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   145
            (self shouldIgnore: e baseName) ifFalse:[
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   146
               self remove: e
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   147
            ].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   148
        ]
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   149
    ].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   150
    file isDirectory ifFalse:[
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   151
        file remove.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   152
    ].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   153
    self cvs: 'remove' files: { file } in: file directory.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   154
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   155
    "Created: / 15-02-2013 / 11:04:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   156
    "Modified: / 15-02-2013 / 18:33:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   157
!
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   158
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   159
shouldIgnore: basename
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   160
    ^ #('.cvsignore' 'CVS' '.svn' '.hg' 'thesis') includes: basename
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   161
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   162
    "Created: / 15-02-2013 / 11:30:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   163
!
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   164
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   165
update
343
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   166
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   167
    script := ''.
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   168
    self update: srcRoot to: dstRoot.
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   169
    script := script , Character cr , 'cvs commit'.
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   170
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   171
    (dstRoot asFilename / 'commit.sh') writingFileDo:[:s|
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   172
        s nextPutAll: script.
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   173
        s cr.
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   174
    ].
342
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   175
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   176
    "Created: / 15-02-2013 / 11:05:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
343
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   177
    "Modified: / 06-09-2013 / 00:50:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
342
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   178
!
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   179
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   180
update: src to: dst
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   181
    | srcFiles dstFiles additions removals common additionsF additionsD |
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   182
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   183
    srcFiles := src directoryContents reject:[:e|self shouldIgnore: e].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   184
    dstFiles := dst directoryContents reject:[:e|self shouldIgnore: e].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   185
    removals := dstFiles \ srcFiles.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   186
    additions := srcFiles \ dstFiles.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   187
    common := srcFiles intersect:dstFiles.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   188
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   189
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   190
    Transcript showCR: ' ==== ' , dst pathName , ' ===='.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   191
    removals do:[:e|
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   192
       Transcript showCR:' Removing ', e.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   193
       self remove: dst / e.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   194
    ].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   195
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   196
    additionsF := OrderedCollection new.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   197
    additionsD := OrderedCollection new.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   198
    additions do:[:e|
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   199
        | srcF dstF |
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   200
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   201
        Transcript showCR:' Adding ', e.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   202
        srcF := src / e.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   203
        dstF := dst / e.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   204
        srcF recursiveCopyTo:dstF.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   205
        srcF isDirectory ifTrue:[
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   206
            additionsD add: dstF
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   207
        ] ifFalse:[
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   208
            additionsF add: dstF
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   209
        ].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   210
    ].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   211
    additionsD do:[:e|self add:e].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   212
    self cvs: 'add' files: additionsF in: dst.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   213
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   214
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   215
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   216
    common do:[:e|
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   217
        | srcF dstF |
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   218
        srcF := src / e.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   219
        dstF := dst / e.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   220
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   221
        Transcript showCR:' Updating ', e.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   222
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   223
        srcF isDirectory ifTrue:[
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   224
            self assert: dstF isDirectory.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   225
            self update: srcF to: dstF
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   226
        ] ifFalse:[
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   227
            srcF copyTo: dstF.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   228
        ]
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   229
    ].
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   230
    Transcript showCR: ' ==== ===='.
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   231
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   232
    "Created: / 15-02-2013 / 11:03:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   233
    "Modified: / 15-02-2013 / 18:45:05 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   234
! !
3a4b76932414 Added HG2CVS tool for naive synchronization of CVS from Mercuriual repo.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   235
343
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   236
!HG2CVS class methodsFor:'documentation'!
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   237
766
7bbb7b74b8b1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 509
diff changeset
   238
version
7bbb7b74b8b1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 509
diff changeset
   239
    ^ '$Header$'
7bbb7b74b8b1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 509
diff changeset
   240
!
7bbb7b74b8b1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 509
diff changeset
   241
7bbb7b74b8b1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 509
diff changeset
   242
version_CVS
7bbb7b74b8b1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 509
diff changeset
   243
    ^ '$Header$'
7bbb7b74b8b1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 509
diff changeset
   244
!
7bbb7b74b8b1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 509
diff changeset
   245
343
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   246
version_HG
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   247
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   248
    ^ '$Changeset: <not expanded> $'
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   249
! !
d40b11749ba4 Changed HG2CVS to generate a commit script instead of issuing cvs commands immediately.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 342
diff changeset
   250