Git migration

From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Git migration
Date: 2013-04-15 20:00:28
Message-ID: 516C5C5C.5020108@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

I finally got a copy of the CVS repository (thanks Marc Fournier!), and
got to try the git migration using cvs2git. That produces better results
than the built-in git-cvsimport tool I used earlier.

I pushed the result to github for review:

https://github.com/hlinnaka/psqlodbc-migration

Please take a look!

I used the following mapping of CVS usernames to Git authors:

author_transforms={
'anoop' : ('Anoop Kumar', 'anoopk(at)pervasive-postgres(dot)com'),
'bmomjian' : ('Bruce Momjian', 'bruce(at)momjian(dot)us'),
'byronn' : ('Byron Nikolaidis', 'byronn(at)insightdist(dot)com'),
'dpage' : ('Dave Page', 'dpage(at)pgadmin(dot)org'),
'hinoue' : ('Hiroshi Inoue', 'inoue(at)tpf(dot)co(dot)jp'),
'h-saito' : ('Hiroshi Saito', 'hiroshi(at)winpg(dot)jp'),
'peter' : ('Peter Eisentraut', 'peter_e(at)gmx(dot)net'),
'scrappy' : ('Marc G. Fournier', 'scrappy(at)hub(dot)org'),
'tgl' : ('Tom Lane', 'tgl(at)sss(dot)pgh(dot)pa(dot)us'),
'thomas' : ('Thomas G. Lockhart', 'lockhart(at)fourpalms(dot)org'),
'ishii' : ('Tatsuo Ishii', 'ishii(at)postgresql(dot)org'),
'luf' : ('Ludek Finstrle', 'luf(at)pzkagis(dot)cz'),
}

I grabbed the email addresses from the pgfoundry developer list, and
from recent postings from the authors, and from the similar list that
was used in the main PostgreSQL repository conversion. Please check your
own email address and spelling of your name, and let me know if you want
to use something else.

I used the attached script to compare the tips of all the CVS branches
and tags with the corresponding branches and tags in git. The only
difference I found was this:

##### Comparing REL-08_02_0500 #####
diff -u -N -r -x CVS /tmp/gitver/psqlodbc.h psqlodbc/psqlodbc.h
--- /tmp/gitver/psqlodbc.h 2007-09-21 09:36:28.000000000 +0300
+++ psqlodbc/psqlodbc.h 2013-04-15 22:32:44.094382349 +0300
@@ -5,7 +5,7 @@
*
* Comments: See "notice.txt" for copyright and license
information.
*
- * $Id: psqlodbc.h,v 1.121 2007/12/26 13:28:36 hinoue Exp $
+ * $Id: psqlodbc.h,v 1.120 2007/06/02 05:32:19 hinoue Exp $
*
*/

##### end comparison #####

I'm not sure why that happened, but I think that's acceptable as the
difference is only in the $Id$ CVS keyword.

Also, cvs2git created a few "manufactured" commits, where branches and
tags have been created. Like this:

commit 0b63b2ec3a5f80f20d7982a13c6255bd6a239887
Author: cvs2svn <cvs2svn>
Date: Thu Jun 30 09:30:39 2005 +0000

This commit was manufactured by cvs2svn to create branch 'PRE_LIBPQ'.

Most of them are actually quite pointless, as the commits don't change
any files. We could remove them, but they're harmless and not too ugly,
so I'm inclined to just leave them as is.

So, here's my proposal on how to proceed with this:

1. Create a new official git repository at git.postgresql.org for the
project, called "psqlodbc".

2. Copy the repository that I pushed to github for review to
git.postgresql.org.

3. After the migration, perform one commit on master branch to remove
CVS keywords from all files.

Any objections? I could do this pretty much immediately, but should
probably leave some time for people to review the repository and raise
any comments. So, how about I do this on Friday, April 19th?

- Heikki

Attachment Content-Type Size
psqlodbc-git-verify.sh application/x-shellscript 1.9 KB

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Inoue, Hiroshi 2013-04-16 03:28:46 Re: Questions about building psqlODBC on Linux/Windows
Previous Message MauMau 2013-04-14 13:41:04 Questions about building psqlODBC on Linux/Windows