pgindent has been run

Started by Bruce Momjianover 19 years ago8 messages
#1Bruce Momjian
bruce@momjian.us

I have run pgindent for 8.2.

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

+ If your life is a hard drive, Christ can be your backup. +

#2Michael Meskes
meskes@postgresql.org
In reply to: Bruce Momjian (#1)
Re: pgindent has been run

On Tue, Oct 03, 2006 at 08:26:36PM -0400, Bruce Momjian wrote:

I have run pgindent for 8.2.

Is there a way to make pgindent skip a directory? It seems it has
changed all expected file in ecpg's regression suite. So we see a lot of
differences now.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

#3Bruce Momjian
bruce@momjian.us
In reply to: Michael Meskes (#2)
Re: pgindent has been run

Michael Meskes wrote:

On Tue, Oct 03, 2006 at 08:26:36PM -0400, Bruce Momjian wrote:

I have run pgindent for 8.2.

Is there a way to make pgindent skip a directory? It seems it has
changed all expected file in ecpg's regression suite. So we see a lot of
differences now.

Sure a directory can be skipped. I am confused how it could change
expected files because it only formats C files.

Seems I need to run the ecpg regressions now as part of my normal
checkin process.

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

+ If your life is a hard drive, Christ can be your backup. +

#4Joachim Wieland
joe@mcknight.de
In reply to: Bruce Momjian (#3)
Re: pgindent has been run

On Wed, Oct 04, 2006 at 06:15:31AM -0400, Bruce Momjian wrote:

Michael Meskes wrote:

Is there a way to make pgindent skip a directory? It seems it has
changed all expected file in ecpg's regression suite. So we see a lot of
differences now.

Sure a directory can be skipped. I am confused how it could change
expected files because it only formats C files.

The .c files that are produced by the ecpg precompiler are in the expected/
directory as well.

Instead of skipping this directory we could also rename them from *.c to
*.source or similar such that pgindent will not touch them.

Joachim

#5Michael Paesold
mpaesold@gmx.at
In reply to: Bruce Momjian (#3)
Re: pgindent has been run

Bruce Momjian schrieb:

Michael Meskes wrote:

On Tue, Oct 03, 2006 at 08:26:36PM -0400, Bruce Momjian wrote:

I have run pgindent for 8.2.

Is there a way to make pgindent skip a directory? It seems it has
changed all expected file in ecpg's regression suite. So we see a lot of
differences now.

Sure a directory can be skipped. I am confused how it could change
expected files because it only formats C files.

As far as I understand, ecpg creates .c files.

Best Regards
Michael Paesold

#6Bruce Momjian
bruce@momjian.us
In reply to: Joachim Wieland (#4)
Re: pgindent has been run

Joachim Wieland wrote:

On Wed, Oct 04, 2006 at 06:15:31AM -0400, Bruce Momjian wrote:

Michael Meskes wrote:

Is there a way to make pgindent skip a directory? It seems it has
changed all expected file in ecpg's regression suite. So we see a lot of
differences now.

Sure a directory can be skipped. I am confused how it could change
expected files because it only formats C files.

The .c files that are produced by the ecpg precompiler are in the expected/
directory as well.

Instead of skipping this directory we could also rename them from *.c to
*.source or similar such that pgindent will not touch them.

I have updated the pgindent script to skip the ecpg regression expected
directory:

find . -name '*.[ch]' -type f -print |
egrep -v '/s_lock.h|src/interfaces/ecpg/test/expected/' |
xargs -n100 pgindent

That will prevent it from being changed by pgindent in the future.

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

+ If your life is a hard drive, Christ can be your backup. +

#7Michael Meskes
meskes@postgresql.org
In reply to: Bruce Momjian (#6)
Re: pgindent has been run

On Wed, Oct 04, 2006 at 04:41:44PM -0400, Bruce Momjian wrote:

That will prevent it from being changed by pgindent in the future.

Thanks.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

#8Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#1)
Re: [HACKERS] pgindent has been run

Bruce Momjian <bruce@momjian.us> writes:

I have run pgindent for 8.2.

I still haven't seen the commit message go by for that, and it's not in
the archives either. I suppose this is because the commit message was
large enough to run afoul of the message size limit. This is kind of
annoying (and it happens on a fairly regular basis).

Could we increase the message size limit for the -committers
list, or even better find a way for messages coming from the CVS
software to not be filtered at all?

regards, tom lane