Re: Tags missing from GIT mirror?

Lists: pgsql-hackers
From: Florian Pflug <fgp(at)phlo(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Tags missing from GIT mirror?
Date: 2010-05-12 18:27:59
Message-ID: F68ECC4F-01A5-4CB0-AEE6-2B5AB3908AC6@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi

I just tried to checkout REL9_0_BETA1 from my local clone of the GIT repository at git.postgresql.org and discovered that none of the tags from CVS seem to exist in there. For alpha1 to alpha1 each tag is accompanied by a corresponding brach, and those *do* exist on the GIT mirror. For beta1, however, no branch seems to exist, and hence there is no trace of it on the GIT mirror.

Why is there a branch plus a tag for alphas, but only a tag for betas? I'd have assumed that both would just be tags, but obviously I'm missing something there...

best regards,
Florian Pflug


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Florian Pflug <fgp(at)phlo(dot)org>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-12 18:43:37
Message-ID: AANLkTinxhImOCdq2a5zlA5iopXGms_noE_ggDOmN4AxV@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, May 12, 2010 at 8:27 PM, Florian Pflug <fgp(at)phlo(dot)org> wrote:
> Hi
>
> I just tried to checkout REL9_0_BETA1 from my local clone of the GIT repository at git.postgresql.org and discovered that none of the tags from CVS seem to exist in there. For alpha1 to alpha1 each tag is accompanied by a corresponding brach, and those *do* exist on the GIT mirror. For beta1, however, no branch seems to exist, and hence there is no trace of it on the GIT mirror.
>
> Why is there a branch plus a tag for alphas, but only a tag for betas? I'd have assumed that both would just be tags, but obviously I'm missing something there...

I think we branched the alphas so we could version-stamp them while
keeping HEAD as "9.0devel". But when we switch to beta, we don't have
a devel tree anymore, it's just beta and backbranches.

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/


From: David Christensen <david(at)endpoint(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Florian Pflug <fgp(at)phlo(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-12 18:59:49
Message-ID: 53130078-757F-4E8A-B2DD-F6E4D84F821B@endpoint.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


On May 12, 2010, at 1:43 PM, Magnus Hagander wrote:

> On Wed, May 12, 2010 at 8:27 PM, Florian Pflug <fgp(at)phlo(dot)org> wrote:
>> Hi
>>
>> I just tried to checkout REL9_0_BETA1 from my local clone of the GIT repository at git.postgresql.org and discovered that none of the tags from CVS seem to exist in there. For alpha1 to alpha1 each tag is accompanied by a corresponding brach, and those *do* exist on the GIT mirror. For beta1, however, no branch seems to exist, and hence there is no trace of it on the GIT mirror.
>>
>> Why is there a branch plus a tag for alphas, but only a tag for betas? I'd have assumed that both would just be tags, but obviously I'm missing something there...
>
> I think we branched the alphas so we could version-stamp them while
> keeping HEAD as "9.0devel". But when we switch to beta, we don't have
> a devel tree anymore, it's just beta and backbranches.

Is there anything to do about the missing tags in git? I've wished for those to be available as well.

Regards,

David
--
David Christensen
End Point Corporation
david(at)endpoint(dot)com


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: David Christensen <david(at)endpoint(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Florian Pflug <fgp(at)phlo(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-12 19:52:07
Message-ID: 4BEB06E7.8070504@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

David Christensen wrote:
>
> Is there anything to do about the missing tags in git? I've wished for those to be available as well.
>
>
>

Sure, fix fromcvs to emit them. How is your ruby?

cheers

andrew


From: Florian Pflug <fgp(at)phlo(dot)org>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: David Christensen <david(at)endpoint(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-12 19:59:56
Message-ID: 6ED48ECD-F6D1-44B4-9427-801E300EEDC9@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On May 12, 2010, at 21:52 , Andrew Dunstan wrote:
> David Christensen wrote:
>>
>> Is there anything to do about the missing tags in git? I've wished for those to be available as well.
>>
>
> Sure, fix fromcvs to emit them. How is your ruby?

Where does one find the version of fromcvs used to feed git.postgresql.org? I might give it a shot.

I can't promise anything, though - my ruby-fu is OK, but my cvs-fu is badly lacking...

best regards,
Florian Pflug


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: David Christensen <david(at)endpoint(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Florian Pflug <fgp(at)phlo(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-12 20:03:59
Message-ID: 4686.1273694639@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> David Christensen wrote:
>> Is there anything to do about the missing tags in git? I've wished for those to be available as well.

> Sure, fix fromcvs to emit them. How is your ruby?

Per Magnus' comment, there isn't anything "missing". We don't make
branches for beta releases. (Personally I'm thinking that having stub
branches for the alphas was a mistake too --- obviously, it's leading to
confusion.)

regards, tom lane


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Florian Pflug <fgp(at)phlo(dot)org>
Cc: David Christensen <david(at)endpoint(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-12 20:11:57
Message-ID: 4BEB0B8D.1060502@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Florian Pflug wrote:
> On May 12, 2010, at 21:52 , Andrew Dunstan wrote:
>
>> David Christensen wrote:
>>
>>> Is there anything to do about the missing tags in git? I've wished for those to be available as well.
>>>
>>>
>> Sure, fix fromcvs to emit them. How is your ruby?
>>
>
>
> Where does one find the version of fromcvs used to feed git.postgresql.org? I might give it a shot.
>
> I can't promise anything, though - my ruby-fu is OK, but my cvs-fu is badly lacking...
>
>
>

Fix the tip version. You'll need fromcvs and rcsparse from
<http://ww2.fs.ei.tum.de/~corecode/hg>. We already know that the version
used on the community repo is broken. The version I am using on my
github mirror is holding up OK. There is a recipe for setting up a
mirror on my blog:
<http://people.planetpostgresql.org/andrew/index.php?/archives/74-Gory-details.html>.
Of course, we might also find some other brokenness if we try to import
all the tags. Also, be aware of this (from
<http://cvs2svn.tigris.org/cvs2git.html>):

Differences between CVS and git branch/tag models: CVS allows a
branch or tag to be created from arbitrary combinations of source
revisions from multiple source branches. It even allows file
revisions that were never contemporaneous to be added to a single
branch/tag. Git, on the other hand, only allows the full source
tree, as it existed at some instant in the history, to be branched
or tagged as a unit. Moreover, the ancestry of a git revision makes
implications about the contents of that revision. This difference
means that it is fundamentally impossible to represent an arbitrary
CVS history in a git repository 100% faithfully.

cheers

andrew


From: Florian Pflug <fgp(at)phlo(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, David Christensen <david(at)endpoint(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-12 20:18:33
Message-ID: 2CACE844-5B44-4842-8CC8-E81041EFCB2E@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On May 12, 2010, at 22:03 , Tom Lane wrote:
> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>> David Christensen wrote:
>>> Is there anything to do about the missing tags in git? I've wished for those to be available as well.
>
>> Sure, fix fromcvs to emit them. How is your ruby?
>
> Per Magnus' comment, there isn't anything "missing". We don't make
> branches for beta releases. (Personally I'm thinking that having stub
> branches for the alphas was a mistake too --- obviously, it's leading to
> confusion.)

Yeah, but CVS has tags for the alphas and betas. Those are missing from the GIT mirror as the CVS-to-GIT converter apparently ignores tags completely :-(. Since there are no branches for the betas, this leaves the GIT repository without any trace that beta1 exists at all...

So there is nothing wrong with the CVS, but on the GIT side there is certainly room for improvement.

best regards,
Florian Pflug


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Florian Pflug <fgp(at)phlo(dot)org>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, David Christensen <david(at)endpoint(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-12 20:22:17
Message-ID: 4960.1273695737@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Florian Pflug <fgp(at)phlo(dot)org> writes:
> Yeah, but CVS has tags for the alphas and betas. Those are missing from the GIT mirror as the CVS-to-GIT converter apparently ignores tags completely :-(. Since there are no branches for the betas, this leaves the GIT repository without any trace that beta1 exists at all...

Really? Then it wouldn't know about any past point-releases either :-(

regards, tom lane


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: David Christensen <david(at)endpoint(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Florian Pflug <fgp(at)phlo(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-12 20:30:46
Message-ID: 4BEB0FF6.2050503@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom Lane wrote:
> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>
>> David Christensen wrote:
>>
>>> Is there anything to do about the missing tags in git? I've wished for those to be available as well.
>>>
>
>
>> Sure, fix fromcvs to emit them. How is your ruby?
>>
>
> Per Magnus' comment, there isn't anything "missing". We don't make
> branches for beta releases. (Personally I'm thinking that having stub
> branches for the alphas was a mistake too --- obviously, it's leading to
> confusion.)
>
>
>

What's missing is a non branch tag. It's there in CVS and not in the git
repos.

cheers

andrew


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Florian Pflug <fgp(at)phlo(dot)org>, David Christensen <david(at)endpoint(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-12 20:36:20
Message-ID: 4BEB1144.1050307@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom Lane wrote:
> Florian Pflug <fgp(at)phlo(dot)org> writes:
>
>> Yeah, but CVS has tags for the alphas and betas. Those are missing from the GIT mirror as the CVS-to-GIT converter apparently ignores tags completely :-(. Since there are no branches for the betas, this leaves the GIT repository without any trace that beta1 exists at all...
>>
>
> Really? Then it wouldn't know about any past point-releases either :-(
>
>
>

Presumably when we cut over to git properly, we will use some other tool
that does import non-branch tags. But for now fromcvs is effectively
the only game in town for incremental mirroring. Of course, if someone
fixed it to handle tags that would be cool ...

cheers

andrew


From: Florian Pflug <fgp(at)phlo(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, David Christensen <david(at)endpoint(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-12 20:57:34
Message-ID: 2E526C89-B1CE-4645-9114-8DA5824DD37E@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 12.05.2010, at 22:22, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Florian Pflug <fgp(at)phlo(dot)org> writes:
>> Yeah, but CVS has tags for the alphas and betas. Those are missing
>> from the GIT mirror as the CVS-to-GIT converter apparently ignores
>> tags completely :-(. Since there are no branches for the betas,
>> this leaves the GIT repository without any trace that beta1 exists
>> at all...
>
> Really? Then it wouldn't know about any past point-releases
> either :-(

It doesn't :-(

Best regards
Florian Pflug


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Florian Pflug <fgp(at)phlo(dot)org>, David Christensen <david(at)endpoint(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-13 07:20:04
Message-ID: 1273735204.32172.2.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On ons, 2010-05-12 at 16:11 -0400, Andrew Dunstan wrote:
> Of course, we might also find some other brokenness if we try to import
> all the tags. Also, be aware of this (from
> <http://cvs2svn.tigris.org/cvs2git.html>):
>
> Differences between CVS and git branch/tag models: CVS allows a
> branch or tag to be created from arbitrary combinations of source
> revisions from multiple source branches. It even allows file
> revisions that were never contemporaneous to be added to a single
> branch/tag. Git, on the other hand, only allows the full source
> tree, as it existed at some instant in the history, to be branched
> or tagged as a unit. Moreover, the ancestry of a git revision makes
> implications about the contents of that revision. This difference
> means that it is fundamentally impossible to represent an arbitrary
> CVS history in a git repository 100% faithfully.

Right, and omitting tags was in fact one of the "features" of fromcvs
that made us use it, because any tool that tries to convert tags will
explode on our CVS tree, for reasons explained in the above paragraph.

We have also discussed this in more detail about three times before.


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Florian Pflug <fgp(at)phlo(dot)org>, David Christensen <david(at)endpoint(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-13 08:41:46
Message-ID: 4BEBBB4A.8090503@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Peter Eisentraut wrote:
> On ons, 2010-05-12 at 16:11 -0400, Andrew Dunstan wrote:
>
>> Of course, we might also find some other brokenness if we try to import
>> all the tags. Also, be aware of this (from
>> <http://cvs2svn.tigris.org/cvs2git.html>):
>>
>> Differences between CVS and git branch/tag models: CVS allows a
>> branch or tag to be created from arbitrary combinations of source
>> revisions from multiple source branches. It even allows file
>> revisions that were never contemporaneous to be added to a single
>> branch/tag. Git, on the other hand, only allows the full source
>> tree, as it existed at some instant in the history, to be branched
>> or tagged as a unit. Moreover, the ancestry of a git revision makes
>> implications about the contents of that revision. This difference
>> means that it is fundamentally impossible to represent an arbitrary
>> CVS history in a git repository 100% faithfully.
>>
>
> Right, and omitting tags was in fact one of the "features" of fromcvs
> that made us use it, because any tool that tries to convert tags will
> explode on our CVS tree, for reasons explained in the above paragraph.
>
> We have also discussed this in more detail about three times before.
>
>

Well, yes, but I have been wondering if this has to be an all or nothing
deal. How many tags can we not tie to a known tree in git? My suspicion
is we can probably identify most of them quite well. If we can that
would be nice.

cheers

andrew


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Florian Pflug <fgp(at)phlo(dot)org>, David Christensen <david(at)endpoint(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-13 11:46:08
Message-ID: 1273751168.32172.8.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On tor, 2010-05-13 at 04:41 -0400, Andrew Dunstan wrote:
> > Right, and omitting tags was in fact one of the "features" of fromcvs
> > that made us use it, because any tool that tries to convert tags will
> > explode on our CVS tree, for reasons explained in the above paragraph.
> >
> > We have also discussed this in more detail about three times before.
>
> Well, yes, but I have been wondering if this has to be an all or nothing
> deal. How many tags can we not tie to a known tree in git? My suspicion
> is we can probably identify most of them quite well. If we can that
> would be nice.

http://archives.postgresql.org/pgsql-hackers/2008-04/msg00036.php


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Florian Pflug <fgp(at)phlo(dot)org>, David Christensen <david(at)endpoint(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tags missing from GIT mirror?
Date: 2010-05-13 12:54:21
Message-ID: 4BEBF67D.80503@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Peter Eisentraut wrote:
> On tor, 2010-05-13 at 04:41 -0400, Andrew Dunstan wrote:
>
>>> Right, and omitting tags was in fact one of the "features" of fromcvs
>>> that made us use it, because any tool that tries to convert tags will
>>> explode on our CVS tree, for reasons explained in the above paragraph.
>>>
>>> We have also discussed this in more detail about three times before.
>>>
>> Well, yes, but I have been wondering if this has to be an all or nothing
>> deal. How many tags can we not tie to a known tree in git? My suspicion
>> is we can probably identify most of them quite well. If we can that
>> would be nice.
>>
>
> http://archives.postgresql.org/pgsql-hackers/2008-04/msg00036.php
>
>

Quite so. All the tags apparently causing problems are of no more than
historical interest to us. But more recent tags, especially for
currently maintained branches, are of interest.

cheers

andrew