Re: Add .gitignore files to CVS?

Lists: pgsql-hackers
From: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Add .gitignore files to CVS?
Date: 2010-01-07 22:16:28
Message-ID: 20100107221628.GF2505@timac.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

I've a .git/info/exclude file I pulled from a link on the dev wiki.

Some of the changes I'm making create new files that ought to be added
to the excluded files. I can easily add them to my .git/info/exclude
file but it's much more work for me and others to spread those changes.

Is there any reason not to add .gitignore files into the repository?
They'll make no difference to those who don't use git, but be very
helpful to, and maintained by, those who do.

Tim.


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-07 22:32:27
Message-ID: 1262903547.15573.13.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On tor, 2010-01-07 at 22:16 +0000, Tim Bunce wrote:
> I've a .git/info/exclude file I pulled from a link on the dev wiki.
>
> Some of the changes I'm making create new files that ought to be added
> to the excluded files. I can easily add them to my .git/info/exclude
> file but it's much more work for me and others to spread those changes.
>
> Is there any reason not to add .gitignore files into the repository?
> They'll make no difference to those who don't use git, but be very
> helpful to, and maintained by, those who do.

I already find the .cvsignore files to be useless and an annoyance to
keep up to date (well, I basically ignore them and someone else cleans
up after me), but if you are thinking about
<http://wiki.postgresql.org/wiki/GitExclude>, which looks like an
outdated list of every single file that is built, then I think that is
going completely overboard. Why don't you just ignore every single file
by default and override it on a case-by-case basis? That would at least
give reliable results.


From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-07 22:36:21
Message-ID: 201001072336.22420.andres@anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thursday 07 January 2010 23:32:27 Peter Eisentraut wrote:
> On tor, 2010-01-07 at 22:16 +0000, Tim Bunce wrote:
> > I've a .git/info/exclude file I pulled from a link on the dev wiki.
> >
> > Some of the changes I'm making create new files that ought to be added
> > to the excluded files. I can easily add them to my .git/info/exclude
> > file but it's much more work for me and others to spread those changes.
> >
> > Is there any reason not to add .gitignore files into the repository?
> > They'll make no difference to those who don't use git, but be very
> > helpful to, and maintained by, those who do.
>
> I already find the .cvsignore files to be useless and an annoyance to
> keep up to date (well, I basically ignore them and someone else cleans
> up after me), but if you are thinking about
> <http://wiki.postgresql.org/wiki/GitExclude>, which looks like an
> outdated list of every single file that is built, then I think that is
> going completely overboard. Why don't you just ignore every single file
> by default and override it on a case-by-case basis? That would at least
> give reliable results.
Because that way you forget new files in patches way much easier.

Andres


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-07 22:45:08
Message-ID: 18795.1262904308@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> On tor, 2010-01-07 at 22:16 +0000, Tim Bunce wrote:
>> Is there any reason not to add .gitignore files into the repository?

> I already find the .cvsignore files to be useless and an annoyance to
> keep up to date (well, I basically ignore them and someone else cleans
> up after me),

When/if we move off CVS, we should drop the .cvsignore files and insert
.gitignore (assuming that works the same way). I am not in favor of
expecting the core project to maintain support for non-core SCMs though.
Will we have .bzrignore and who knows what else in there too?

As Peter points out, the only way the things will get maintained is if
the complaints they suppress are in-the-face of somebody with commit
access to the core repo. I like quiet from my "cvs update"s, so I'm
willing to maintain .cvsignores, but I'm not willing to maintain
multiple copies of that information.

regards, tom lane


From: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-07 23:40:05
Message-ID: 20100107234004.GH2505@timac.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Jan 07, 2010 at 05:45:08PM -0500, Tom Lane wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > On tor, 2010-01-07 at 22:16 +0000, Tim Bunce wrote:
> >> Is there any reason not to add .gitignore files into the repository?
>
> > I already find the .cvsignore files to be useless and an annoyance to
> > keep up to date (well, I basically ignore them and someone else cleans
> > up after me),
>
> When/if we move off CVS, we should drop the .cvsignore files and insert
> .gitignore (assuming that works the same way). I am not in favor of
> expecting the core project to maintain support for non-core SCMs though.
> Will we have .bzrignore and who knows what else in there too?
>
> As Peter points out, the only way the things will get maintained is if
> the complaints they suppress are in-the-face of somebody with commit
> access to the core repo. I like quiet from my "cvs update"s, so I'm
> willing to maintain .cvsignores, but I'm not willing to maintain
> multiple copies of that information.

How about a "make gitignore" target that copies each .cvsignore file to
a .gitignore file and appends .gitignore to it?

That way git users can just do "make gitignore" to get working .gitignore
files without cluttering the repository. As a bonus they'll then have an
incentive to update the .cvsignore files.

Tim.


From: Alex Hunsaker <badalex(at)gmail(dot)com>
To: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-07 23:44:49
Message-ID: 34d269d41001071544u49a0ce6fwa30b45e662a5fb24@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Jan 7, 2010 at 15:16, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com> wrote:
> Is there any reason not to add .gitignore files into the repository?
> They'll make no difference to those who don't use git, but be very
> helpful to, and maintained by, those who do.

Since it seems we don't want them in CVS, maybe just add it to the git
mirror? I don't know that we want the git mirror to have
commits/files that CVS does not. *shrug* Thoughts people?


From: tomas(at)tuxteam(dot)de
To: Alex Hunsaker <badalex(at)gmail(dot)com>
Cc: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-08 08:49:51
Message-ID: 20100108084951.GB21128@tomas
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Jan 07, 2010 at 04:44:49PM -0700, Alex Hunsaker wrote:
> On Thu, Jan 7, 2010 at 15:16, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com> wrote:
> > Is there any reason not to add .gitignore files into the repository?
> > They'll make no difference to those who don't use git, but be very
> > helpful to, and maintained by, those who do.
>
> Since it seems we don't want them in CVS, maybe just add it to the git
> mirror? I don't know that we want the git mirror to have
> commits/files that CVS does not. *shrug* Thoughts people?

...then you would have to add .gitignore to .cvsignore, lest cvs commit
complains about *that* ;-P

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLRvGvBcgs9XrR2kYRAoWbAJwNU6Zt5gfYiBipzNFPuZAnbLsgeACdGWac
0UegxgApq7SHGRwR++tt/sI=
=Iatz
-----END PGP SIGNATURE-----


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Alex Hunsaker <badalex(at)gmail(dot)com>
Cc: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-08 09:03:19
Message-ID: 9837222c1001080103j4b650ca8q9dbd7ada65cba64d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Fri, Jan 8, 2010 at 00:44, Alex Hunsaker <badalex(at)gmail(dot)com> wrote:
> On Thu, Jan 7, 2010 at 15:16, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com> wrote:
>> Is there any reason not to add .gitignore files into the repository?
>> They'll make no difference to those who don't use git, but be very
>> helpful to, and maintained by, those who do.
>
> Since it seems we don't want them in CVS, maybe just add it to the git
> mirror?  I don't know that we want the git mirror to have
> commits/files that CVS does not. *shrug*  Thoughts people?

Definite -1. We want the git repository to be (as much as possible)
identical to the CVS one.

You can always create your own branch with just the .gitignore files
and merge that into whatever you're working on :)

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


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-08 15:04:35
Message-ID: 20100108150435.GB3635@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Magnus Hagander escribió:
> On Fri, Jan 8, 2010 at 00:44, Alex Hunsaker <badalex(at)gmail(dot)com> wrote:
> > On Thu, Jan 7, 2010 at 15:16, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com> wrote:
> >> Is there any reason not to add .gitignore files into the repository?
> >> They'll make no difference to those who don't use git, but be very
> >> helpful to, and maintained by, those who do.
> >
> > Since it seems we don't want them in CVS, maybe just add it to the git
> > mirror?  I don't know that we want the git mirror to have
> > commits/files that CVS does not. *shrug*  Thoughts people?
>
> Definite -1. We want the git repository to be (as much as possible)
> identical to the CVS one.
>
> You can always create your own branch with just the .gitignore files
> and merge that into whatever you're working on :)

Do .gitignore files have the same format as .cvsignore? If that's the
case then it's simply a matter of a "find /source -name .cvsignore -exec
cp {} .gitignore \;" or similar, isn't it? Doesn't sound like something
anybody should sweat over.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


From: Alex Hunsaker <badalex(at)gmail(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-08 16:38:15
Message-ID: 34d269d41001080838t73f51c57kf384341eb12c6758@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Fri, Jan 8, 2010 at 02:03, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> You can always create your own branch with just the .gitignore files
> and merge that into whatever you're working on :)

The only thing annoying about that is if you generate diffs ala git
diff origin/master.. you get your .gitignore in it.

What I do is have a .gitignore that is gitignored. That way its not
committed, its on any branch i switch to or make and I don't
accidentally commit it.


From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Alex Hunsaker <badalex(at)gmail(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-08 17:18:52
Message-ID: 201001081818.52973.andres@anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Friday 08 January 2010 17:38:15 Alex Hunsaker wrote:
> On Fri, Jan 8, 2010 at 02:03, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> > You can always create your own branch with just the .gitignore files
> > and merge that into whatever you're working on :)
>
> The only thing annoying about that is if you generate diffs ala git
> diff origin/master.. you get your .gitignore in it.
>
> What I do is have a .gitignore that is gitignored. That way its not
> committed, its on any branch i switch to or make and I don't
> accidentally commit it.
Thats what .git/info/excludes is for...

Andres


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-08 17:34:24
Message-ID: 603c8f071001080934x6d09a004p8eee1e27fb7982ad@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Jan 7, 2010 at 5:45 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>> On tor, 2010-01-07 at 22:16 +0000, Tim Bunce wrote:
>>> Is there any reason not to add .gitignore files into the repository?
>
>> I already find the .cvsignore files to be useless and an annoyance to
>> keep up to date (well, I basically ignore them and someone else cleans
>> up after me),
>
> When/if we move off CVS, we should drop the .cvsignore files and insert
> .gitignore (assuming that works the same way).  I am not in favor of
> expecting the core project to maintain support for non-core SCMs though.
> Will we have .bzrignore and who knows what else in there too?
>
> As Peter points out, the only way the things will get maintained is if
> the complaints they suppress are in-the-face of somebody with commit
> access to the core repo.  I like quiet from my "cvs update"s, so I'm
> willing to maintain .cvsignores, but I'm not willing to maintain
> multiple copies of that information.

I would be willing to maintain .gitignore files, under the agreement
that if I should fail or cease to do so, and no one else wants to take
over, then they all get removed. Would that be acceptable?

...Robert


From: Euler Taveira de Oliveira <euler(at)timbira(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 02:21:34
Message-ID: 4B47E82E.9080904@timbira.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas escreveu:
> I would be willing to maintain .gitignore files, under the agreement
> that if I should fail or cease to do so, and no one else wants to take
> over, then they all get removed. Would that be acceptable?
>
-1. I tend to agree with Tom and Peter. Why don't you use vpath builds when
using your favorite SCM? That way, we don't have trouble with auto-generated
files while getting your patch.

--
Euler Taveira de Oliveira
http://www.timbira.com/


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Euler Taveira de Oliveira <euler(at)timbira(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 03:26:32
Message-ID: 603c8f071001081926p6ed4cba0obc19debf67d1736@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Fri, Jan 8, 2010 at 9:21 PM, Euler Taveira de Oliveira
<euler(at)timbira(dot)com> wrote:
> Robert Haas escreveu:
>> I would be willing to maintain .gitignore files, under the agreement
>> that if I should fail or cease to do so, and no one else wants to take
>> over, then they all get removed.   Would that be acceptable?
>>
> -1. I tend to agree with Tom and Peter. Why don't you use vpath builds when
> using your favorite SCM? That way, we don't have trouble with auto-generated
> files while getting your patch.

Tom's stated position was that the only way this was going to happen
is if it regularly annoyed someone with access to the core repository.
I am, and I do.

Peter's position was that the excludes-list on the wiki was out of
date and useless, that he doesn't like .cvsignore files, and that he
lets other people clean up after him. I'm not disputing any of that;
at the same time, I am constantly ignored by the failure to have
proper .gitignore files, so I'm motivated to put in the work to clean
up after him and everyone else.

I don't find vpath builds to be convenient, so that is why I do not
use them regularly. I am not sure what you mean by "trouble with
auto-generated files when getting my patch".

The only downside I can see to allowing this to move forward is that
it will create some small amount of additional commit traffic as a
result of me updating the files. But I don't think it would be very
much - only a small percentage of our commits add new auto-generated
files.

Having said all that, I don't care to argue about it. It's not worth it.

...Robert


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 03:35:24
Message-ID: 27697.1263008124@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> Tom's stated position was that the only way this was going to happen
> is if it regularly annoyed someone with access to the core repository.
> I am, and I do.

Yeah. I don't see the harm in it if Robert (or some other git user)
will contract to maintain them. I know that I regularly forget to
deal with .cvsignore files until I see a cvs notice, so there's no
way that they'll be kept up to date without such feedback.

Probably eventually we'll be on git and this will be moot, but that
doesn't seem to be ready to happen.

regards, tom lane


From: David Fetter <david(at)fetter(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 04:03:22
Message-ID: 20100109040322.GV30864@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Fri, Jan 08, 2010 at 10:35:24PM -0500, Tom Lane wrote:
> Probably eventually we'll be on git and this will be moot, but that
> doesn't seem to be ready to happen.

What still needs to happen on this? Clearly this would be a post-8.5
(or whatever the new release number is) thing, but apart from that?

Cheers,
David (git! git! git! ;)
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Fetter <david(at)fetter(dot)org>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 04:08:40
Message-ID: 28167.1263010120@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

David Fetter <david(at)fetter(dot)org> writes:
> On Fri, Jan 08, 2010 at 10:35:24PM -0500, Tom Lane wrote:
>> Probably eventually we'll be on git and this will be moot, but that
>> doesn't seem to be ready to happen.

> What still needs to happen on this? Clearly this would be a post-8.5
> (or whatever the new release number is) thing, but apart from that?

AFAIR, we still weren't convinced that we had a 100% conversion method
(ie something that would preserve all the history) and there were still
questions about how to work with multi-branch patches most effectively.
I don't recall where the previous discussion died off exactly, but
it definitely wasn't at the "we're ready to do it" stage.

regards, tom lane


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: David Fetter <david(at)fetter(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 04:54:25
Message-ID: 20100109045425.GF3635@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom Lane escribió:
> David Fetter <david(at)fetter(dot)org> writes:
> > On Fri, Jan 08, 2010 at 10:35:24PM -0500, Tom Lane wrote:
> >> Probably eventually we'll be on git and this will be moot, but that
> >> doesn't seem to be ready to happen.
>
> > What still needs to happen on this? Clearly this would be a post-8.5
> > (or whatever the new release number is) thing, but apart from that?
>
> AFAIR, we still weren't convinced that we had a 100% conversion method
> (ie something that would preserve all the history) and there were still
> questions about how to work with multi-branch patches most effectively.
> I don't recall where the previous discussion died off exactly, but
> it definitely wasn't at the "we're ready to do it" stage.

Somebody did a pull of all the tags, and some of them were missing files
and failed to build.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, David Fetter <david(at)fetter(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 11:47:00
Message-ID: 9837222c1001090347p9fa07c0k580f62a71f06b7be@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sat, Jan 9, 2010 at 05:54, Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:
> Tom Lane escribió:
>> David Fetter <david(at)fetter(dot)org> writes:
>> > On Fri, Jan 08, 2010 at 10:35:24PM -0500, Tom Lane wrote:
>> >> Probably eventually we'll be on git and this will be moot, but that
>> >> doesn't seem to be ready to happen.
>>
>> > What still needs to happen on this?  Clearly this would be a post-8.5
>> > (or whatever the new release number is) thing, but apart from that?
>>
>> AFAIR, we still weren't convinced that we had a 100% conversion method
>> (ie something that would preserve all the history) and there were still
>> questions about how to work with multi-branch patches most effectively.
>> I don't recall where the previous discussion died off exactly, but
>> it definitely wasn't at the "we're ready to do it" stage.
>
> Somebody did a pull of all the tags, and some of them were missing files
> and failed to build.

That was from the current git mirror.

To re-itarate yet again, what I believe has been said many times before:

There are two ways to get from cvs to git.

The first one is reliable (at least from what I've heard). But it only
supports one-off migrations. It doesn't support incremental changes.
It was confused by some things that were plain broken in our cvs
repository way back (this happens with cvs, as we all know), but AFAIK
they have been fixed.

The second one supports incremental changes. And has issues with
back-branches. This is the one we are using.

If/when we are moving the main repository, we should use the first
one. Yes, this will invalidate all current git clones out there, but
that's a one-time cost. Will there be issues? Possibly. But we're
*never* going to get something that's *guaranteed* 100% safe, not when
going from something like CVS...

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


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 14:36:42
Message-ID: 1263047802.1339.8.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On fre, 2010-01-08 at 12:04 -0300, Alvaro Herrera wrote:
> Do .gitignore files have the same format as .cvsignore? If that's the
> case then it's simply a matter of a "find /source -name .cvsignore
> -exec
> cp {} .gitignore \;" or similar, isn't it? Doesn't sound like
> something
> anybody should sweat over.

The format is the same, but while cvsignore files currently list a few
dozen files, the proposed gitignore would list all files that are ever
build anywhere.


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: David Fetter <david(at)fetter(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 14:41:09
Message-ID: 1263048069.1339.11.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On fre, 2010-01-08 at 20:03 -0800, David Fetter wrote:
> On Fri, Jan 08, 2010 at 10:35:24PM -0500, Tom Lane wrote:
> > Probably eventually we'll be on git and this will be moot, but that
> > doesn't seem to be ready to happen.
>
> What still needs to happen on this? Clearly this would be a post-8.5
> (or whatever the new release number is) thing, but apart from that?

Probably someone to actually track the open items that are mentioned
every time this discussion happens.


From: David Fetter <david(at)fetter(dot)org>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 15:39:53
Message-ID: 20100109153953.GA18950@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sat, Jan 09, 2010 at 12:47:00PM +0100, Magnus Hagander wrote:
> But we're *never* going to get something that's *guaranteed* 100%
> safe,

You can end the sentence right there. *Everything* has a strictly
positive probability of catastrophic failure.

> not when going from something like CVS...

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, David Fetter <david(at)fetter(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 16:32:51
Message-ID: 7616.1263054771@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Magnus Hagander <magnus(at)hagander(dot)net> writes:
> If/when we are moving the main repository, we should use the first
> one. Yes, this will invalidate all current git clones out there, but
> that's a one-time cost. Will there be issues? Possibly. But we're
> *never* going to get something that's *guaranteed* 100% safe, not when
> going from something like CVS...

Alvaro already mentioned the success criterion that we agreed to:
be able to pull all of the past release tags from the repository
and get something that matches the actual release tarballs (perhaps
with an exception for $PostgreSQL$ tags and such). Surely the process
can be tested in advance.

regards, tom lane


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 17:00:21
Message-ID: 8023.1263056421@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> On fre, 2010-01-08 at 12:04 -0300, Alvaro Herrera wrote:
>> Do .gitignore files have the same format as .cvsignore?

> The format is the same, but while cvsignore files currently list a few
> dozen files, the proposed gitignore would list all files that are ever
> build anywhere.

The charter of the .cvsignore files is to ignore files that are not in
the repository but are nonetheless left behind after "make distclean".
Any git-oriented replacement should behave the same IMO.

regards, tom lane


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, David Fetter <david(at)fetter(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 17:03:36
Message-ID: 9837222c1001090903s74b2e090s5b41a4ee679f0fe7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sat, Jan 9, 2010 at 17:32, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Magnus Hagander <magnus(at)hagander(dot)net> writes:
>> If/when we are moving the main repository, we should use the first
>> one. Yes, this will invalidate all current git clones out there, but
>> that's a one-time cost. Will there be issues? Possibly. But we're
>> *never* going to get something that's *guaranteed* 100% safe, not when
>> going from something like CVS...
>
> Alvaro already mentioned the success criterion that we agreed to:
> be able to pull all of the past release tags from the repository
> and get something that matches the actual release tarballs (perhaps
> with an exception for $PostgreSQL$ tags and such).  Surely the process
> can be tested in advance.

If that's the only remaining obstacle, I'm willing to work up some
test scripts around that. But I'm not going to do that if it's going
to fall over on something else as well, because it'll be a nontrivial
amount of work to test ir properly :-)

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


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 17:11:45
Message-ID: 1263057105.1339.12.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On lör, 2010-01-09 at 12:00 -0500, Tom Lane wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > On fre, 2010-01-08 at 12:04 -0300, Alvaro Herrera wrote:
> >> Do .gitignore files have the same format as .cvsignore?
>
> > The format is the same, but while cvsignore files currently list a few
> > dozen files, the proposed gitignore would list all files that are ever
> > build anywhere.
>
> The charter of the .cvsignore files is to ignore files that are not in
> the repository but are nonetheless left behind after "make distclean".
> Any git-oriented replacement should behave the same IMO.

Then it would be trivial, but that is not what is being proposed.


From: Aidan Van Dyk <aidan(at)highrise(dot)ca>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, David Fetter <david(at)fetter(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 17:33:52
Message-ID: 20100109173351.GA18076@oak.highrise.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

* Magnus Hagander <magnus(at)hagander(dot)net> [100109 12:03]:

> If that's the only remaining obstacle, I'm willing to work up some
> test scripts around that. But I'm not going to do that if it's going
> to fall over on something else as well, because it'll be a nontrivial
> amount of work to test ir properly :-)

It's already been done. It was not a lot of work (just processor time).
It's even already been posted to -hackers, including what the
differences were (i.e. which $Tags$ differed, and where, and where the
CVS history had been hacked by hand).

a.

--
Aidan Van Dyk Create like a god,
aidan(at)highrise(dot)ca command like a king,
http://www.highrise.ca/ work like a slave.


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Aidan Van Dyk <aidan(at)highrise(dot)ca>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, David Fetter <david(at)fetter(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 18:05:31
Message-ID: 9837222c1001091005r2045bb25r478b1a379ba55e20@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sat, Jan 9, 2010 at 18:33, Aidan Van Dyk <aidan(at)highrise(dot)ca> wrote:
> * Magnus Hagander <magnus(at)hagander(dot)net> [100109 12:03]:
>
>> If that's the only remaining obstacle, I'm willing to work up some
>> test scripts around that. But I'm not going to do that if it's going
>> to fall over on something else as well, because it'll be a nontrivial
>> amount of work to test ir properly :-)
>
> It's already been done.  It was not a lot of work (just processor time).
> It's even already been posted to -hackers, including what the
> differences were (i.e. which $Tags$ differed, and where, and where the
> CVS history had been hacked by hand).

Do you still have the scripts?

IIRC we fixed at least some of the brokenness in the CVS repo?

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


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Aidan Van Dyk <aidan(at)highrise(dot)ca>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, David Fetter <david(at)fetter(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 18:52:28
Message-ID: 11343.1263063148@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Magnus Hagander <magnus(at)hagander(dot)net> writes:
> On Sat, Jan 9, 2010 at 18:33, Aidan Van Dyk <aidan(at)highrise(dot)ca> wrote:
>> It's already been done. It was not a lot of work (just processor time).
>> It's even already been posted to -hackers, including what the
>> differences were (i.e. which $Tags$ differed, and where, and where the
>> CVS history had been hacked by hand).

> Do you still have the scripts?

> IIRC we fixed at least some of the brokenness in the CVS repo?

I think we had *not*, but clearly that would be an appropriate next step
to take (and then retry the import experiment).

regards, tom lane


From: Roger Leigh <rleigh(at)codelibre(dot)net>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 20:57:56
Message-ID: 20100109205755.GA30889@codelibre.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sat, Jan 09, 2010 at 12:47:00PM +0100, Magnus Hagander wrote:
> On Sat, Jan 9, 2010 at 05:54, Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:
> > Tom Lane escribió:
> >> David Fetter <david(at)fetter(dot)org> writes:
> >> > On Fri, Jan 08, 2010 at 10:35:24PM -0500, Tom Lane wrote:
> >> >> Probably eventually we'll be on git and this will be moot, but that
> >> >> doesn't seem to be ready to happen.
> >>
> >> > What still needs to happen on this?  Clearly this would be a post-8.5
> >> > (or whatever the new release number is) thing, but apart from that?
> >>
> >> AFAIR, we still weren't convinced that we had a 100% conversion method
> >> (ie something that would preserve all the history) and there were still
> >> questions about how to work with multi-branch patches most effectively.
> >> I don't recall where the previous discussion died off exactly, but
> >> it definitely wasn't at the "we're ready to do it" stage.
> >
> > Somebody did a pull of all the tags, and some of them were missing files
> > and failed to build.
>
> That was from the current git mirror.
>
> To re-itarate yet again, what I believe has been said many times before:
>
> There are two ways to get from cvs to git.
>
> The first one is reliable (at least from what I've heard). But it only
> supports one-off migrations. It doesn't support incremental changes.
> It was confused by some things that were plain broken in our cvs
> repository way back (this happens with cvs, as we all know), but AFAIK
> they have been fixed.

As a git user who has now done a number of CVS->git migrations over the
past few years, I also found that the various tools to do the
conversion do have their own issues (such as cvsps) which can lead to
incorrect history in some corner cases. Unfortunately, in any big
repo with a lot of history, you do tend to find you trip up on them
in a few places.

My experience was that the CVS->SVN conversion tended to be rather
more reliable and accurate. As a result, going GIT->SVN->git can
give a much better history. At least in my experience.

Regards,
Roger

--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 22:12:47
Message-ID: 603c8f071001091412y30322425l37aa8dc869bc800b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sat, Jan 9, 2010 at 12:00 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>> On fre, 2010-01-08 at 12:04 -0300, Alvaro Herrera wrote:
>>> Do .gitignore files have the same format as .cvsignore?
>
>> The format is the same, but while cvsignore files currently list a few
>> dozen files, the proposed gitignore would list all files that are ever
>> build anywhere.
>
> The charter of the .cvsignore files is to ignore files that are not in
> the repository but are nonetheless left behind after "make distclean".
> Any git-oriented replacement should behave the same IMO.

Oh. Never mind. That doesn't seem useful enough to be worth spending
time on. What I want is to ignore all of the build products, so that
when I do 'git status' in my working tree, I only see the the files
I've actually added/changed. Now that you mention it, I think I had
the same complaint about the .cvsignore files back when I was using
CVS. It seems like an odd charter.

...Robert


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 22:18:27
Message-ID: 4B4900B3.2000300@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas wrote:
> On Sat, Jan 9, 2010 at 12:00 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
>> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>>
>>> On fre, 2010-01-08 at 12:04 -0300, Alvaro Herrera wrote:
>>>
>>>> Do .gitignore files have the same format as .cvsignore?
>>>>
>>> The format is the same, but while cvsignore files currently list a few
>>> dozen files, the proposed gitignore would list all files that are ever
>>> build anywhere.
>>>
>> The charter of the .cvsignore files is to ignore files that are not in
>> the repository but are nonetheless left behind after "make distclean".
>> Any git-oriented replacement should behave the same IMO.
>>
>
> Oh. Never mind. That doesn't seem useful enough to be worth spending
> time on. What I want is to ignore all of the build products, so that
> when I do 'git status' in my working tree, I only see the the files
> I've actually added/changed. Now that you mention it, I think I had
> the same complaint about the .cvsignore files back when I was using
> CVS. It seems like an odd charter.
>
>

Use a vpath build, and you'll keep those artifacts out of your source tree.

cheers

andrew


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 22:19:47
Message-ID: 603c8f071001091419k5e415176l273ec9e15ebbc9a5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sat, Jan 9, 2010 at 5:18 PM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> Robert Haas wrote:
>> On Sat, Jan 9, 2010 at 12:00 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>>>> On fre, 2010-01-08 at 12:04 -0300, Alvaro Herrera wrote:
>>>>> Do .gitignore files have the same format as .cvsignore?
>>>> The format is the same, but while cvsignore files currently list a few
>>>> dozen files, the proposed gitignore would list all files that are ever
>>>> build anywhere.
>>>
>>> The charter of the .cvsignore files is to ignore files that are not in
>>> the repository but are nonetheless left behind after "make distclean".
>>> Any git-oriented replacement should behave the same IMO.
>>>
>>
>> Oh.  Never mind.  That doesn't seem useful enough to be worth spending
>> time on.  What I want is to ignore all of the build products, so that
>> when I do 'git status' in my working tree, I only see the the files
>> I've actually added/changed.  Now that you mention it, I think I had
>> the same complaint about the .cvsignore files back when I was using
>> CVS.  It seems like an odd charter.
>>
> Use a vpath build, and you'll keep those artifacts out of your source tree.

I suppose that's one answer, but of what use is it to ignore only the
'make distclean' leftovers?

...Robert


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 22:44:47
Message-ID: 19049.1263077087@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Sat, Jan 9, 2010 at 5:18 PM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
>> Robert Haas wrote:
>>> What I want is to ignore all of the build products

>> Use a vpath build, and you'll keep those artifacts out of your source tree.

> I suppose that's one answer, but of what use is it to ignore only the
> 'make distclean' leftovers?

Well, it fits my workflow, which is make distclean -> cvs update ->
fresh build. If you want to update without cleaning the build tree,
using a separate build tree seems like a much better answer.

regards, tom lane


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 22:51:23
Message-ID: 1263077483.1339.30.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On lör, 2010-01-09 at 17:19 -0500, Robert Haas wrote:
> >> Oh. Never mind. That doesn't seem useful enough to be worth spending
> >> time on. What I want is to ignore all of the build products, so that
> >> when I do 'git status' in my working tree, I only see the the files
> >> I've actually added/changed. Now that you mention it, I think I had
> >> the same complaint about the .cvsignore files back when I was using
> >> CVS. It seems like an odd charter.
> >>
> > Use a vpath build, and you'll keep those artifacts out of your source tree.
>
> I suppose that's one answer, but of what use is it to ignore only the
> 'make distclean' leftovers?

That charter was established before make maintainer-clean was invented.


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 22:51:30
Message-ID: 603c8f071001091451k735839a8v2a5dc43c3a8ed7f3@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sat, Jan 9, 2010 at 5:44 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> On Sat, Jan 9, 2010 at 5:18 PM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
>>> Robert Haas wrote:
>>>> What I want is to ignore all of the build products
>
>>> Use a vpath build, and you'll keep those artifacts out of your source tree.
>
>> I suppose that's one answer, but of what use is it to ignore only the
>> 'make distclean' leftovers?
>
> Well, it fits my workflow, which is make distclean -> cvs update ->
> fresh build.  If you want to update without cleaning the build tree,
> using a separate build tree seems like a much better answer.

Oh, I see. With git, I clean the tree with "git clean -dfx" rather
than "make distclean". That just blows away all the files that aren't
in the repository. I find that faster and more reliable than "make
distclean", although of course you have to be careful not to be leave
anything in the tree that you were planning to hold on to...

...Robert


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 22:53:15
Message-ID: 1263077595.1339.32.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On lör, 2010-01-09 at 17:12 -0500, Robert Haas wrote:
> Oh. Never mind. That doesn't seem useful enough to be worth spending
> time on. What I want is to ignore all of the build products, so that
> when I do 'git status' in my working tree, I only see the the files
> I've actually added/changed.

Shouldn't it be possible to just build the master branch once and then
take the result of git status to produce the list of files to be
ignored? That should reduce the maintenance effort.


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 23:00:12
Message-ID: 603c8f071001091500yd8cf0d5xeb852f7c385e3d07@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sat, Jan 9, 2010 at 5:53 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> On lör, 2010-01-09 at 17:12 -0500, Robert Haas wrote:
>> Oh.  Never mind.  That doesn't seem useful enough to be worth spending
>> time on.  What I want is to ignore all of the build products, so that
>> when I do 'git status' in my working tree, I only see the the files
>> I've actually added/changed.
>
> Shouldn't it be possible to just build the master branch once and then
> take the result of git status to produce the list of files to be
> ignored?  That should reduce the maintenance effort.

Oh, for sure. That's what I would do, although I would say we should
ignore *.o in the relevant directories rather than listing out the
individual files. But if Tom only wants the things that remain after
'make distclean' to be ignored, then it's not actually going to solve
any problem that I have, because, as mentioned upthread, I use
'git-clean -dfx' to clean my tree. What I'm interested in is being
able to run 'git status' on a tree in which I've run a build without
getting a lot of extra output, and that will require ignoring all the
build products.

...Robert


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 23:20:59
Message-ID: 20137.1263079259@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> ... What I'm interested in is being
> able to run 'git status' on a tree in which I've run a build without
> getting a lot of extra output, and that will require ignoring all the
> build products.

I'm fairly hesitant to set up ignore files that list *all* the build
products (or even all the non-.o ones) because of the probability of
error --- in particular, the likelihood that this would mask an omission
in a "make clean" rule. The current charter for .cvsignore is
relatively safe and low-maintenance because there are so few built files
that are supposed to remain around in a distribution tree. What you're
talking about would require a great deal more maintenance effort, and
I don't see the point compared to using a VPATH build.

regards, tom lane


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-09 23:22:52
Message-ID: 603c8f071001091522i7d758041qff89f9e7a7671eaf@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sat, Jan 9, 2010 at 6:20 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> ... What I'm interested in is being
>> able to run 'git status' on a tree in which I've run a build without
>> getting a lot of extra output, and that will require ignoring all the
>> build products.
>
> I'm fairly hesitant to set up ignore files that list *all* the build
> products (or even all the non-.o ones) because of the probability of
> error --- in particular, the likelihood that this would mask an omission
> in a "make clean" rule.  The current charter for .cvsignore is
> relatively safe and low-maintenance because there are so few built files
> that are supposed to remain around in a distribution tree.  What you're
> talking about would require a great deal more maintenance effort, and
> I don't see the point compared to using a VPATH build.

That seems to be a common POV, so I think we should just let it go.

...Robert


From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: David Fetter <david(at)fetter(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-10 01:39:10
Message-ID: 4B492FBE.1040307@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Peter Eisentraut wrote:
> Probably someone to actually track the open items that are mentioned
> every time this discussion happens.
>

http://wiki.postgresql.org/wiki/Switching_PostgreSQL_from_CVS_to_Git now
has what I believe the state of the world to be in this area.

--
Greg Smith 2ndQuadrant Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com www.2ndQuadrant.com


From: Dimitri Fontaine <dfontaine(at)hi-media(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Alex Hunsaker <badalex(at)gmail(dot)com>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-10 09:45:39
Message-ID: m2hbqu47jw.fsf@hi-media.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

Another occasion to show ignorance, I couldn't resist!

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> What you're
> talking about would require a great deal more maintenance effort, and
> I don't see the point compared to using a VPATH build.

I've discovered VPATH builds pretty recently, in the context of
packaging extensions. The concept is simple but it could be helpful if
spelled in simple terms: VPATH is about finding the sources.

So you build wherever you want without messing your checkout. But you
build from the target directory, telling in VPATH where the sources are.

HTH, regards,
--
dim


From: Aidan Van Dyk <aidan(at)highrise(dot)ca>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, David Fetter <david(at)fetter(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-11 19:23:45
Message-ID: 20100111192345.GB18076@oak.highrise.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

* Magnus Hagander <magnus(at)hagander(dot)net> [100109 13:05]:
> On Sat, Jan 9, 2010 at 18:33, Aidan Van Dyk <aidan(at)highrise(dot)ca> wrote:
> > * Magnus Hagander <magnus(at)hagander(dot)net> [100109 12:03]:
> >
> >> If that's the only remaining obstacle, I'm willing to work up some
> >> test scripts around that. But I'm not going to do that if it's going
> >> to fall over on something else as well, because it'll be a nontrivial
> >> amount of work to test ir properly :-)
> >
> > It's already been done.  It was not a lot of work (just processor time).
> > It's even already been posted to -hackers, including what the
> > differences were (i.e. which $Tags$ differed, and where, and where the
> > CVS history had been hacked by hand).
>
> Do you still have the scripts?

Well, I have a screen running yet with bash history showing most of the
commands...

Basically, with a local $CVSROOT, import every tag/release/branch you want
into git as a tree:
for b in $(cat ../tags.txt); do echo $b; rm -Rf * .git/index; cvs export -kk -r $b -d ./ pgsql > /dev/null && git add --all && git tag -f cvs-tag-$b $(git write-tree); done

And then, it's a simple matter of letting git diff the git ref with the corespnding CVS export tree them:
for b in $(cat ../tags.txt); do echo $b; git diff $b cvs-tag-$b > /tmp/pg-parsecvs-$b.diff; done

a.

--
Aidan Van Dyk Create like a god,
aidan(at)highrise(dot)ca command like a king,
http://www.highrise.ca/ work like a slave.


From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Robert Haas" <robertmhaas(at)gmail(dot)com>, "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, "Alex Hunsaker" <badalex(at)gmail(dot)com>, "Magnus Hagander" <magnus(at)hagander(dot)net>, "Tim Bunce" <Tim(dot)Bunce(at)pobox(dot)com>, "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-12 16:36:16
Message-ID: 4B4C50A0020000250002E2A2@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> wrote:

> What I'm interested in is being able to run 'git status' on a tree
> in which I've run a build without getting a lot of extra output,
> and that will require ignoring all the build products.

If you prefer to keep it all in one directory tree, something like
the following would work on Linux. (The first of the two statements
would probably need a slight tweak to work on other *nix, but I'm
not sure of the best format.)

echo '# Globally ignore common build product patterns.

*.[oa]
*.so
*.so.*

# Ignore specific files.
' > .gitignore
git status | grep '^#[^ ]' | sed -e 's/#\t//' \
-e '/^[^\/][^\/]*$/ s/^/\//' >> .gitignore

If you run that right after branching and building, you should be
set. It produces the attached for me, which seems to work. For me,
at least. On kubuntu.

If we included and maintained the attached file in the repository,
it'd save running the above. That seems reasonable to me, but I
don't care enough to argue over it.

-Kevin

Attachment Content-Type Size
.gitignore application/octet-stream 5.4 KB

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Robert Haas" <robertmhaas(at)gmail(dot)com>, "Peter Eisentraut" <peter_e(at)gmx(dot)net>, "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, "Alex Hunsaker" <badalex(at)gmail(dot)com>, "Magnus Hagander" <magnus(at)hagander(dot)net>, "Tim Bunce" <Tim(dot)Bunce(at)pobox(dot)com>, "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-12 16:47:49
Message-ID: 4B4C5355020000250002E2AE@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

I wrote:
> git status | grep '^#[^ ]' | sed -e 's/#\t//' \
> -e '/^[^\/][^\/]*$/ s/^/\//' >> .gitignore

I guess that part can be simplified to:

git status | grep '^#[^ ]' | sed -e 's/#\t/\//' >> .gitignore

-Kevin


From: Chris Browne <cbbrowne(at)acm(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add .gitignore files to CVS?
Date: 2010-01-14 17:46:12
Message-ID: 87ska8zijf.fsf@dba2.int.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

badalex(at)gmail(dot)com (Alex Hunsaker) writes:
> On Fri, Jan 8, 2010 at 02:03, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>> You can always create your own branch with just the .gitignore files
>> and merge that into whatever you're working on :)
>
> The only thing annoying about that is if you generate diffs ala git
> diff origin/master.. you get your .gitignore in it.
>
> What I do is have a .gitignore that is gitignored. That way its not
> committed, its on any branch i switch to or make and I don't
> accidentally commit it.

I'd put that in $GITHOME/.git/info/exclude

That's specifically what that file's for...
--
output = reverse("moc.liamg" "@" "enworbbc")
http://www3.sympatico.ca/cbbrowne/slony.html
DSK: STAN.K; ML EXIT -- FILE NOT FOUND