Git conversion status

Started by Magnus Haganderover 15 years ago53 messageshackers
Jump to latest
#1Magnus Hagander
magnus@hagander.net

Hi!

CVS has been frozen, and all commit access locked out.

Since there haven't been any commits in cvs during the day, the test
conversoin I created after lunch should be identical to a new one I'd
run now, so let's use that one :-)

So I've moved it in place. It's on
http://git.postgresql.org/gitweb?p=postgresql-migration.git. Git
access available at
git://git.postgresql.org/git/postgresql-migration.git.

Committers can (and should! please test!) clone from git clone
ssh://git@gitmaster.postgresql.org/postgresql.git.

Please do *NOT* commit or push anything to this repository yet though:
The repo is there - all the scripts to manage it are *not*. So don't
commit until I confirm that it is.

But please clone and verify the stuff we have now.

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

#2Bruce Momjian
bruce@momjian.us
In reply to: Magnus Hagander (#1)
Re: Git conversion status

Magnus Hagander wrote:

Hi!

CVS has been frozen, and all commit access locked out.

Since there haven't been any commits in cvs during the day, the test
conversoin I created after lunch should be identical to a new one I'd
run now, so let's use that one :-)

So I've moved it in place. It's on
http://git.postgresql.org/gitweb?p=postgresql-migration.git. Git
access available at
git://git.postgresql.org/git/postgresql-migration.git.

Committers can (and should! please test!) clone from git clone
ssh://git@gitmaster.postgresql.org/postgresql.git.

Please do *NOT* commit or push anything to this repository yet though:
The repo is there - all the scripts to manage it are *not*. So don't
commit until I confirm that it is.

But please clone and verify the stuff we have now.

Git clone worked just fine.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#1)
Re: Git conversion status

Magnus Hagander <magnus@hagander.net> writes:

Since there haven't been any commits in cvs during the day, the test
conversoin I created after lunch should be identical to a new one I'd
run now, so let's use that one :-)

This is not even close to matching the tarballs :-(. Seems to be a
locale problem: the diffs look like

1c1
< /* $PostgreSQL: pgsql/contrib/citext/citext.sql.in,v 1.3 2008/09/05 18:25:16 tgl Exp $ */
---

/* $PostgreSQL: pgsql/contrib/citext/citext.sql.in,v 1.3 2008-09-05 18:25:16 tgl Exp $ */

Please fix and re-run.

regards, tom lane

#4Magnus Hagander
magnus@hagander.net
In reply to: Tom Lane (#3)
Re: Git conversion status

On Mon, Sep 20, 2010 at 19:34, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Magnus Hagander <magnus@hagander.net> writes:

Since there haven't been any commits in cvs during the day, the test
conversoin I created after lunch should be identical to a new one I'd
run now, so let's use that one :-)

This is not even close to matching the tarballs :-(.  Seems to be a
locale problem: the diffs look like

1c1
< /* $PostgreSQL: pgsql/contrib/citext/citext.sql.in,v 1.3 2008/09/05 18:25:16 tgl Exp $ */
---

/* $PostgreSQL: pgsql/contrib/citext/citext.sql.in,v 1.3 2008-09-05 18:25:16 tgl Exp $ */

Please fix and re-run.

Uh, what the heck. I ran the exact same command as last time.. Hmm:
Stefan rbeooted the machine in between, I wonder if that changed
something.

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

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#4)
Re: Git conversion status

Magnus Hagander <magnus@hagander.net> writes:

On Mon, Sep 20, 2010 at 19:34, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Please fix and re-run.

Uh, what the heck. I ran the exact same command as last time.. Hmm:
Stefan rbeooted the machine in between, I wonder if that changed
something.

I'm not sure we ever checked that. My comparisons against the tarballs
were done from my own run of the conversion script. I'm using C locale
here, probably you aren't?

regards, tom lane

#6Magnus Hagander
magnus@hagander.net
In reply to: Tom Lane (#5)
Re: Git conversion status

On Mon, Sep 20, 2010 at 19:49, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Magnus Hagander <magnus@hagander.net> writes:

On Mon, Sep 20, 2010 at 19:34, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Please fix and re-run.

Uh, what the heck. I ran the exact same command as last time.. Hmm:
Stefan rbeooted the machine in between, I wonder if that changed
something.

I'm not sure we ever checked that.  My comparisons against the tarballs
were done from my own run of the conversion script.  I'm using C locale
here, probably you aren't?

Correct, I'm in en_US. I'm trying a "cvs export" in "C" now to see
exaclty what changes.
Hmm

Nope, doesn't seem to change. I just set my LANG=C, and ran a "cvs
export". but it comes back with "-" in the dates, so it seems to not
care about that.

("locale" clearly shows it's changed everything to C though)

Is there a cvs setting for this somewhere that you know of?

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

#7Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#6)
Re: Git conversion status

Magnus Hagander <magnus@hagander.net> writes:

Correct, I'm in en_US. I'm trying a "cvs export" in "C" now to see
exaclty what changes.
Hmm

Nope, doesn't seem to change. I just set my LANG=C, and ran a "cvs
export". but it comes back with "-" in the dates, so it seems to not
care about that.

I thought "cvs export" removed keywords entirely ... try a checkout
instead. Also, are you sure you don't have any LC_xxx variables set?

regards, tom lane

#8Magnus Hagander
magnus@hagander.net
In reply to: Magnus Hagander (#6)
Re: Git conversion status

On Mon, Sep 20, 2010 at 7:57 PM, Magnus Hagander <magnus@hagander.net> wrote:

On Mon, Sep 20, 2010 at 19:49, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Magnus Hagander <magnus@hagander.net> writes:

On Mon, Sep 20, 2010 at 19:34, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Please fix and re-run.

Uh, what the heck. I ran the exact same command as last time.. Hmm:
Stefan rbeooted the machine in between, I wonder if that changed
something.

I'm not sure we ever checked that.  My comparisons against the tarballs
were done from my own run of the conversion script.  I'm using C locale
here, probably you aren't?

Correct, I'm in en_US. I'm trying a "cvs export" in "C" now to see exaclty what changes.
Hmm

Nope, doesn't seem to change. I just set my LANG=C, and ran a "cvs export". but it comes back with "-" in the dates, so it seems to not care about that.

("locale" clearly shows it's changed everything to C though)

Is there a cvs setting for this somewhere that you know of?

Think I found it.

debian applies a patch to change it. If I set DateStyle=old in
CVSROOT/config, cvs export behaves sanely. I'll re-run with that
setting.

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

#9Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#8)
Re: Git conversion status

Magnus Hagander <magnus@hagander.net> writes:

debian applies a patch to change it.

[ rolls eyes... ] Thank you, debian.

regards, tom lane

#10Magnus Hagander
magnus@hagander.net
In reply to: Tom Lane (#9)
Re: Git conversion status

On Mon, Sep 20, 2010 at 20:07, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Magnus Hagander <magnus@hagander.net> writes:

debian applies a patch to change it.

[ rolls eyes... ]  Thank you, debian.

Indeed.

For the archives, that's DateFormat=old, not DateStyle. Oops.

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

#11Stefan Kaltenbrunner
stefan@kaltenbrunner.cc
In reply to: Magnus Hagander (#8)
Re: Git conversion status

On 09/20/2010 08:05 PM, Magnus Hagander wrote:

On Mon, Sep 20, 2010 at 7:57 PM, Magnus Hagander<magnus@hagander.net> wrote:

On Mon, Sep 20, 2010 at 19:49, Tom Lane<tgl@sss.pgh.pa.us> wrote:

Magnus Hagander<magnus@hagander.net> writes:

On Mon, Sep 20, 2010 at 19:34, Tom Lane<tgl@sss.pgh.pa.us> wrote:

Please fix and re-run.

Uh, what the heck. I ran the exact same command as last time.. Hmm:
Stefan rbeooted the machine in between, I wonder if that changed
something.

I'm not sure we ever checked that. My comparisons against the tarballs
were done from my own run of the conversion script. I'm using C locale
here, probably you aren't?

Correct, I'm in en_US. I'm trying a "cvs export" in "C" now to see exaclty what changes.
Hmm

Nope, doesn't seem to change. I just set my LANG=C, and ran a "cvs export". but it comes back with "-" in the dates, so it seems to not care about that.

("locale" clearly shows it's changed everything to C though)

Is there a cvs setting for this somewhere that you know of?

Think I found it.

debian applies a patch to change it. If I set DateStyle=old in
CVSROOT/config, cvs export behaves sanely. I'll re-run with that
setting.

actually as I understand it the behaviour changed in cvs 1.12.x and
debian applied a patch to provide the old output for backwards
compatibility...

Stefan

#12Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#8)
Re: Git conversion status

BTW, while poking around in this morning's attempt I noticed
.git/description, containing

Unnamed repository; edit this file 'description' to name the repository.

No idea if this is shown anywhere or if there is any practical way to
change it once the repo's been published. Might be an idea to stick
something in there.

regards, tom lane

#13Andres Freund
andres@anarazel.de
In reply to: Tom Lane (#12)
Re: Git conversion status

On Monday 20 September 2010 20:15:50 Tom Lane wrote:

BTW, while poking around in this morning's attempt I noticed
.git/description, containing

Unnamed repository; edit this file 'description' to name the repository.

No idea if this is shown anywhere or if there is any practical way to
change it once the repo's been published. Might be an idea to stick
something in there.

Its mostly used for display in gitweb and can be changed anytime.

Andres

#14Magnus Hagander
magnus@hagander.net
In reply to: Tom Lane (#12)
Re: Git conversion status

On Mon, Sep 20, 2010 at 20:15, Tom Lane <tgl@sss.pgh.pa.us> wrote:

BTW, while poking around in this morning's attempt I noticed
.git/description, containing

Unnamed repository; edit this file 'description' to name the repository.

No idea if this is shown anywhere or if there is any practical way to
change it once the repo's been published.  Might be an idea to stick
something in there.

That's, AFAIK, only used for gitweb.

That said, where was it set to that? A locally initialized repo, or on
the clone? Because I changed it in the repository before I published
it I think (i now deleted the whole repo to make room for the new
conversion, so i can't doublecheck that :D)

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

#15Tom Lane
tgl@sss.pgh.pa.us
In reply to: Stefan Kaltenbrunner (#11)
Re: Git conversion status

Stefan Kaltenbrunner <stefan@kaltenbrunner.cc> writes:

On 09/20/2010 08:05 PM, Magnus Hagander wrote:

debian applies a patch to change it. If I set DateStyle=old in
CVSROOT/config, cvs export behaves sanely. I'll re-run with that
setting.

actually as I understand it the behaviour changed in cvs 1.12.x and
debian applied a patch to provide the old output for backwards
compatibility...

Well, I'm testing with an unmodified copy of 1.12.13, and I got output
matching our historical tarballs. So I'm blaming debian for this one.

regards, tom lane

#16Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andres Freund (#13)
Re: Git conversion status

Andres Freund <andres@anarazel.de> writes:

On Monday 20 September 2010 20:15:50 Tom Lane wrote:

BTW, while poking around in this morning's attempt I noticed
.git/description, containing

Unnamed repository; edit this file 'description' to name the repository.

No idea if this is shown anywhere or if there is any practical way to
change it once the repo's been published. Might be an idea to stick
something in there.

Its mostly used for display in gitweb and can be changed anytime.

Hm, I might've misinterpreted its semantics. Is that file copied by
"git clone", or is it something that's unique to each physical
repository?

regards, tom lane

#17Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#14)
Re: Git conversion status

Magnus Hagander <magnus@hagander.net> writes:

On Mon, Sep 20, 2010 at 20:15, Tom Lane <tgl@sss.pgh.pa.us> wrote:

BTW, while poking around in this morning's attempt I noticed
.git/description, containing

Unnamed repository; edit this file 'description' to name the repository.

That said, where was it set to that? A locally initialized repo, or on
the clone?

That's what I found in the result of
git clone ssh://git@gitmaster.postgresql.org/postgresql.git

If git clone isn't meant to copy it, then this is a non-issue.

regards, tom lane

#18Andres Freund
andres@anarazel.de
In reply to: Tom Lane (#16)
Re: Git conversion status

On Monday 20 September 2010 20:22:55 Tom Lane wrote:

Andres Freund <andres@anarazel.de> writes:

On Monday 20 September 2010 20:15:50 Tom Lane wrote:

BTW, while poking around in this morning's attempt I noticed
.git/description, containing

Unnamed repository; edit this file 'description' to name the repository.

No idea if this is shown anywhere or if there is any practical way to
change it once the repo's been published. Might be an idea to stick
something in there.

Its mostly used for display in gitweb and can be changed anytime.

Hm, I might've misinterpreted its semantics. Is that file copied by
"git clone", or is it something that's unique to each physical
repository?

Unique to each "physical repository" (like everything in .git - unless you
count the cloned 'objects').

Andres

#19Stefan Kaltenbrunner
stefan@kaltenbrunner.cc
In reply to: Tom Lane (#15)
Re: Git conversion status

On 09/20/2010 08:21 PM, Tom Lane wrote:

Stefan Kaltenbrunner<stefan@kaltenbrunner.cc> writes:

On 09/20/2010 08:05 PM, Magnus Hagander wrote:

debian applies a patch to change it. If I set DateStyle=old in
CVSROOT/config, cvs export behaves sanely. I'll re-run with that
setting.

actually as I understand it the behaviour changed in cvs 1.12.x and
debian applied a patch to provide the old output for backwards
compatibility...

Well, I'm testing with an unmodified copy of 1.12.13, and I got output
matching our historical tarballs. So I'm blaming debian for this one.

not sure - if I read the CVS changelog the "new style" output only
triggers if both the server AND the client are > 1.12.x (for some value
of x on both).
As far as I know magnus is using a debian based CVS server for his
testing so that would certainly be 1.12.x - are you too?

Stefan

#20Tom Lane
tgl@sss.pgh.pa.us
In reply to: Stefan Kaltenbrunner (#19)
Re: Git conversion status

Stefan Kaltenbrunner <stefan@kaltenbrunner.cc> writes:

On 09/20/2010 08:21 PM, Tom Lane wrote:

Well, I'm testing with an unmodified copy of 1.12.13, and I got output
matching our historical tarballs. So I'm blaming debian for this one.

As far as I know magnus is using a debian based CVS server for his
testing so that would certainly be 1.12.x - are you too?

No server anywhere: I'm reading from a local repository which is a
tarball copy of the one on cvs.postgresql.org. 1.12.13 is the only
version in question. (I believe Magnus is not using a server either;
the cvs2git documentation says that it will only work from a local repo,
and even if that's not true I shudder to think how long it would take
over a network.)

regards, tom lane

#21Stefan Kaltenbrunner
stefan@kaltenbrunner.cc
In reply to: Tom Lane (#20)
#22Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#3)
#23Tom Lane
tgl@sss.pgh.pa.us
In reply to: Stefan Kaltenbrunner (#21)
#24Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#22)
#25Peter Eisentraut
peter_e@gmx.net
In reply to: Tom Lane (#24)
#26Stefan Kaltenbrunner
stefan@kaltenbrunner.cc
In reply to: Tom Lane (#23)
#27Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#25)
#28Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#24)
#29Magnus Hagander
magnus@hagander.net
In reply to: Magnus Hagander (#8)
#30Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#29)
#31Magnus Hagander
magnus@hagander.net
In reply to: Tom Lane (#30)
#32Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#31)
#33Robert Haas
robertmhaas@gmail.com
In reply to: Tom Lane (#32)
#34Tom Lane
tgl@sss.pgh.pa.us
In reply to: Tom Lane (#32)
#35Tom Lane
tgl@sss.pgh.pa.us
In reply to: Robert Haas (#33)
#36Magnus Hagander
magnus@hagander.net
In reply to: Tom Lane (#35)
#37Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#36)
#38Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Magnus Hagander (#1)
#39Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Alvaro Herrera (#38)
#40Robert Haas
robertmhaas@gmail.com
In reply to: Alvaro Herrera (#38)
#41Tom Lane
tgl@sss.pgh.pa.us
In reply to: Robert Haas (#40)
#42Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Tom Lane (#41)
#43Andrew Dunstan
andrew@dunslane.net
In reply to: Tom Lane (#41)
#44Abhijit Menon-Sen
ams@2ndQuadrant.com
In reply to: Tom Lane (#34)
#45Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Robert Haas (#40)
#46Aidan Van Dyk
aidan@highrise.ca
In reply to: Alvaro Herrera (#45)
#47Robert Haas
robertmhaas@gmail.com
In reply to: Alvaro Herrera (#45)
#48Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Aidan Van Dyk (#46)
#49Tom Lane
tgl@sss.pgh.pa.us
In reply to: Robert Haas (#47)
#50Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Alvaro Herrera (#48)
#51Andrew Dunstan
andrew@dunslane.net
In reply to: Tom Lane (#49)
#52Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Alvaro Herrera (#50)
#53Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#49)