pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Maciek Sakrejda <msakrejda@truviso.com>
Cc: Marko Kreen <markokr@gmail.com>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: test git conversion
Date: Wed, 07 Dec 2011 02:25:00 -0500
Message-ID: <11466.1323242700@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH_hXRakptrQzD7K0-piJ=vDTZXp=A3uM3Lv63cs1Zp8mBw45A@mail.gmail.com>
References: <CACMqXCKiKdLZStZRRWpYHomf4bob7Xu9cpt=h39ioxCoH9d55g@mail.gmail.com>
	<CACMqXCJ4kxEKOHkrgucOBZHZSYO_=b8QT1rYaSUqtS5-eU+ooA@mail.gmail.com>
	<19487.1317826738@sss.pgh.pa.us>
	<CACMqXCLk97L-x6r7zCd2VaE9sJM=e5o+Ov2pQVKmhAox1-_P+A@mail.gmail.com>
	<CACMqXCKVCA9_b-12qDD=Meptugafz2FyyOcOTabQ_a5zY3kcqw@mail.gmail.com>
	<4E8C80D3.4000109@ejurka.com>
	<CACMqXCJy-tYG2=_J=T29hud0WmKssNekd2+XegqNj4G8s-vrVA@mail.gmail.com>
	<CAH_hXRYBuCRd930xiSAGXgQR26eDxQ=NSm+LunZnmQFVywkf4Q@mail.gmail.com>
	<CACMqXCL7Ufk364_FKH7jmbCM_4_Qg0rqO9CiuvS0vasgimFSnQ@mail.gmail.com>
	<CADK3HH+VUPnZfvaWxitUeSWi8awY9Yehvs01PxOkPdSTbw5+sQ@mail.gmail.com>
	<CAH_hXRYp0=+Vdhk_swwZ1ZgxETbu=f930e+pLz8tCEmMbQd3mg@mail.gmail.com>
	<CACMqXCKbD0GTrPTiG4PHU2VcseTOCY_=r0YCuWjtMDD6Ous75A@mail.gmail.com>
	<16256.1323207907@sss.pgh.pa.us>
	<CAH_hXRakptrQzD7K0-piJ=vDTZXp=A3uM3Lv63cs1Zp8mBw45A@mail.gmail.com>

Maciek Sakrejda <msakrejda@truviso.com> writes:
> Kris had pointed out something like this, too. I had looked at the
> most recent few manufactured commits and didn't see any problems
> (i.e., they were empty and could simply have been filtered out), but I
> investigated further and you're absolutely right: starting shortly
> before the 8.2-508 tag (and all the way back to the beginning), there
> are some bogus commits leading to a weird history: e.g.,
> https://github.com/davecramer/pgjdbc/commit/266a282e221a33e6e5f52f5388ea739528267f70
> . It's hard to see this without a visualizer like gitk, but that
> commit has two parents, merging the master branch into what it claims
> is the newly-created 8.2 branch (which in fact has been around for a
> while by that point, as evidenced by all the 8.2.x tags). This sort of
> thing seems to happen over and over. I can't quite follow what it's
> doing (or the mailing list explanations I've found, for that matter),
> possibly since I have extremely limited experience with CVS (and I
> thank my lucky stars for that). I also tried with a newer cvs2git, but
> no dice.

Many of the problems in the core conversion stemmed from the weird way
in which CVS deals with files that are added to branches later than they
are added to mainline.  Originally, CVS had no way to represent the fact
that such a file had not existed on the branch all the way back to the
time of its addition to mainline; although any tags you'd added to the
branch in between would not be on such a file, making it apparent that
it wasn't really there.  So cvs2git sees an inconsistent history and has
to do something ugly to fix it.

Later on, the CVS people invented a kluge way to represent this situation,
so it's possible that you don't have any such cases in recent history.
Basically the kluge requires inserting a deletion event on the branch at
the time of the file's creation on master.  We did that by hand-editing
the RCS files when we did the core conversion, which was a tad more
exciting than I would've liked, but there weren't really enough cases
to justify building a tool for it.

There were also assorted problems stemming from having done squirrelly
things back in the day, like moving the point from which the REL7_1
branch had been sprouted.  I'm not clear on how much of that might
affect the JDBC repository.

There's lots and lots of detail in the pgsql-hackers archives about
this, around mid September 2010.

			regards, tom lane



view thread (32+ messages)  latest in thread

Message-ID: <11466.1323242700@sss.pgh.pa.us>
Permalink:  ../11466.1323242700@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11466.1323242700@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, msakrejda@truviso.com, markokr@gmail.com, pg@fastcrypt.com, books@ejurka.com
  Subject: Re: test git conversion
  In-Reply-To: <11466.1323242700@sss.pgh.pa.us>
  References: <CACMqXCKiKdLZStZRRWpYHomf4bob7Xu9cpt=h39ioxCoH9d55g@mail.gmail.com> <CACMqXCJ4kxEKOHkrgucOBZHZSYO_=b8QT1rYaSUqtS5-eU+ooA@mail.gmail.com> <19487.1317826738@sss.pgh.pa.us> <CACMqXCLk97L-x6r7zCd2VaE9sJM=e5o+Ov2pQVKmhAox1-_P+A@mail.gmail.com> <CACMqXCKVCA9_b-12qDD=Meptugafz2FyyOcOTabQ_a5zY3kcqw@mail.gmail.com> <4E8C80D3.4000109@ejurka.com> <CACMqXCJy-tYG2=_J=T29hud0WmKssNekd2+XegqNj4G8s-vrVA@mail.gmail.com> <CAH_hXRYBuCRd930xiSAGXgQR26eDxQ=NSm+LunZnmQFVywkf4Q@mail.gmail.com> <CACMqXCL7Ufk364_FKH7jmbCM_4_Qg0rqO9CiuvS0vasgimFSnQ@mail.gmail.com> <CADK3HH+VUPnZfvaWxitUeSWi8awY9Yehvs01PxOkPdSTbw5+sQ@mail.gmail.com> <CAH_hXRYp0=+Vdhk_swwZ1ZgxETbu=f930e+pLz8tCEmMbQd3mg@mail.gmail.com> <CACMqXCKbD0GTrPTiG4PHU2VcseTOCY_=r0YCuWjtMDD6Ous75A@mail.gmail.com> <16256.1323207907@sss.pgh.pa.us> <CAH_hXRakptrQzD7K0-piJ=vDTZXp=A3uM3Lv63cs1Zp8mBw45A@mail.gmail.com> <11466.1323242700@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox