Re: RFC: Migration of the master revision control repository to git

Tim Rice <[email protected]>
Newsgroups gmane.comp.telephony.fax.hylafax.devel
Message-ID <[email protected]>
On Wed, 1 Jul 2009, Patrice Fournier wrote:

> We would like to make the git repository the master repository to which
> HylaFAX developers would push their changes and have a read-only CVS mirror
> for those who prefer or can only use CVS. On this mirror, the various git
> heads (branches) would appear as different modules instead of branches, beside
> this and different file version IDs, the CVS repository would looks like the
> current CVS repository to the end user.
> 
> We would like to get feedback from all active commiters regarding this
> migration. Are you all in favor of this migration and if not, what would be
> the reason? (So that we can find a solution and still migrate to git. ;))

I can't say I'm in favor of the migration (after all, it will be more work
for me to learn yet another version control program) but I certainly will
not stand in the way of it. What would help me is some good pointers to
how to use git.
And more specificly, how to duplicate the things I do with CVS now.

Say I wanted to check out HEAD to a directory named hylafax,
with CVS I would
cvs -z9 -d [email protected]:/usr/local/cvsroot co -d hylafax hylafax

Then to pull updates for HEAD
cvs -z9 -d [email protected]:/usr/local/cvsroot update -d hylafax

or check out the 6.0 branch to a directoty named hylafax-6.0 would
be
cvs -z9 -d [email protected]:/usr/local/cvsroot update -r HYLAFAX-6_0-branch -d hylafax-6.0

and to pull updates for the 6.0 branch
cvs -z9 -d [email protected]:/usr/local/cvsroot co -r HYLAFAX-6_0-branch -d hylafax-6.0 hylafax

How do I do those things with git?

Then there is commiting
Say I wanted to commit defs.in in HEAD, I would
cvs -d [email protected]:/usr/local/cvsroot commit hylafax/defs.in

or to the 6.0 branch
cvs -d [email protected]:/usr/local/cvsroot commit -r HYLAFAX-6_0-branch hylafax-6.0/defs.in

How is that done with git?
 
Then what about adding files?
If I wanted to add the files hylafax/faxcover/edit-faxcover.sh.in and
hylafax/man/edit-faxcover.1 I would use a script something like
.......
HERE=`pwd`
FILES_ADD="hylafax/faxcover/edit-faxcover.sh.in hylafax/man/edit-faxcover.1"
for i in $FILES_ADD
do
	cd `dirname $i`
	cvs -d [email protected]:/usr/local/cvsroot add `basename ${i}` 
	cd $HERE
done
.......

How is that done with git?

Thanks for any tips you may have.

-- 
Tim Rice				Multitalents	(707) 887-1469
[email protected]



____________________ HylaFAX(tm) Developers Mailing List ____________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe [email protected] < /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.