Re: Hacking on PostgreSQL via GIT - Mailing list pgsql-hackers

From Florian G. Pflug
Subject Re: Hacking on PostgreSQL via GIT
Date
Msg-id 4623BF39.1010806@phlo.org
Whole thread Raw
In response to Re: Hacking on PostgreSQL via GIT  (Aidan Van Dyk <aidan@highrise.ca>)
List pgsql-hackers
Aidan Van Dyk wrote:
> Martin Langhoff wrote:
> Well, now that more than one of us are working with git on PostgreSQL...
> 
> I've had a repo conversion running for a while...  I've only got it to what
> I consider "stable" last week:
>     http://repo.or.cz/w/PostgreSQL.git
>     git://repo.or.cz/PostgreSQL.git
Ah - thats what I just stumbled over ;-)

> For those interested int he conversion process, I've used a slightly
> modified version of fromcvs (A ruby cvs to git/Hg tool), and it runs on all
> of pgsql in about 20 minutes.
> 
> I gave up on git-svn (because of both speed and my in-ablility to
> easy "filter" out Keywords, etc) and git-cvsimport (because cvsps doesn't
> seem to like pgsql's repo)
Yeah, git-cvsimport didn't work for me either...

> I "update" the git repo daily, based on an anonymous rsync of the cvsroot. 
> If the anon-rsync is updated much more frequently, and people think my git
> conversion should match it, I have no problem having cron run it more than
> daily.
> 
> Also - note that I give *no* guarentees of it's integrity, etc.
> 
> I've "diffed" a CVS checkout and a git checkout, and the are *almost*
> identical.  Almost, because it seems like my git repository currently has 3
> files that a cvs checkout doesn't:
>  backend/parser/gram.c             |12088 +++++++++++++++++++++++++++
>  interfaces/ecpg/preproc/pgc.c     | 2887 ++++++
>  interfaces/ecpg/preproc/preproc.c |16988 ++++++++++++++++++++++++++++++++++
> 
> And at this point, I haven't been bothered to see where those files came
> from (and where they dissapear) in CVS and why my import isn't picking that
> up...  I could probably be pushed if others find this repo really useful,
> but those files problematic...
Thats interesting - the SVN mirror of the pgsql CVS at
http://projects.commandprompt.com/public/pgsql/browser
has exactly the same problem with those 3 files, as I found out the hard way ;-)

In the case of pgc.c, I've compared that revisions in CVS with the one in
SVN. SVN include the cvs-version 1.5 if this file in trunk, which seems to
be the last version of that file in CVS HEAD. Interestingly,
http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/preproc/Attic/pgc.c
shows no trace of the file being deleted from HEAD either - it just shows
that it was removed from WIN32_DEV. But still a CVS checkout doesn't include 
that file...

Since 3 tools (cvsweb, git-cvsimport and whatever commandprompt uses to create
the SVN mirror) all come to the same conclusion regarding this file, I think
that this is caused by some corruption of the CVS repository - but I don't have
the cvs-fu to debug this...

greetings, Florian Pflug



pgsql-hackers by date:

Previous
From: "Florian G. Pflug"
Date:
Subject: Re: Hacking on PostgreSQL via GIT
Next
From: Tom Lane
Date:
Subject: Re: IDENTITY/GENERATED v36 Re: [PATCHES] Final version of IDENTITY/GENERATED patch