pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add pgindent commit to git-blame-ignore-revs file.
9+ messages / 4 participants
[nested] [flat]

Commits from this thread:
  2021-06-28 bc49ab3c27  Improve pgindent release workflow.
* pgsql: Add pgindent commit to git-blame-ignore-revs file.
@ 2021-06-28 16:26  Peter Geoghegan <pg@bowt.ie>
  0 siblings, 1 reply; 9+ messages in thread

From: Peter Geoghegan @ 2021-06-28 16:26 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add pgindent commit to git-blame-ignore-revs file.

Add entry for recent commit e1c1c30f.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ba135fa537ab5c2fca0d589c826ebb3ecf98b2f1

Modified Files
--------------
.git-blame-ignore-revs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pgsql: Add pgindent commit to git-blame-ignore-revs file.
@ 2021-06-28 16:31  Andrew Dunstan <andrew@dunslane.net>
  parent: Peter Geoghegan <pg@bowt.ie>
  0 siblings, 1 reply; 9+ messages in thread

From: Andrew Dunstan @ 2021-06-28 16:31 UTC (permalink / raw)
  To: Peter Geoghegan <pg@bowt.ie>; pgsql-committers@lists.postgresql.org


On 6/28/21 12:26 PM, Peter Geoghegan wrote:
> Add pgindent commit to git-blame-ignore-revs file.
>
> Add entry for recent commit e1c1c30f.
>

Hmm, did I miss something or do we need to update some instructions
somewhere?


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com






^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pgsql: Add pgindent commit to git-blame-ignore-revs file.
@ 2021-06-28 16:35  Peter Geoghegan <pg@bowt.ie>
  parent: Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 2 replies; 9+ messages in thread

From: Peter Geoghegan @ 2021-06-28 16:35 UTC (permalink / raw)
  To: Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>

On Mon, Jun 28, 2021 at 9:31 AM Andrew Dunstan <andrew@dunslane.net> wrote:
> Hmm, did I miss something or do we need to update some instructions
> somewhere?

(Responded on the other committers thread just now too.)

I did update the instructions in commit 8e638845, but perhaps I
omitted to update something. What do you think?

-- 
Peter Geoghegan





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pgsql: Add pgindent commit to git-blame-ignore-revs file.
@ 2021-06-28 16:43  Alvaro Herrera <alvherre@alvh.no-ip.org>
  parent: Peter Geoghegan <pg@bowt.ie>
  1 sibling, 1 reply; 9+ messages in thread

From: Alvaro Herrera @ 2021-06-28 16:43 UTC (permalink / raw)
  To: Peter Geoghegan <pg@bowt.ie>; +Cc: Andrew Dunstan <andrew@dunslane.net>; pgsql-committers <pgsql-committers@lists.postgresql.org>

On 2021-Jun-28, Peter Geoghegan wrote:

> On Mon, Jun 28, 2021 at 9:31 AM Andrew Dunstan <andrew@dunslane.net> wrote:
> > Hmm, did I miss something or do we need to update some instructions
> > somewhere?
> 
> (Responded on the other committers thread just now too.)
> 
> I did update the instructions in commit 8e638845, but perhaps I
> omitted to update something. What do you think?

I think it would be useful to have the "git log" instructions in
src/tools/RELEASE_CHANGES, not just in the .git-blame-ignore-revs file
itself.


... and now that I look at running that command, I notice that the date
format it generates for me is different from what it did for you:

e1c1c30f635390b6a3ae4993e8cac213a33e6e3f # Mon Jun 28 11:05:54 2021 -0400 
# Pre branch pgindent / pgperltidy run


This is what you committed:

+e1c1c30f635390b6a3ae4993e8cac213a33e6e3f # 2021-06-28 11:05:54 -0400
+# Pre branch pgindent / pgperltidy run

Is it worth documenting whatever is causing the output to be this?
I'm sure many of us would be bothered if the date format was not always
the same in future entries.

-- 
Álvaro Herrera       Valdivia, Chile
"Linux transformó mi computadora, de una `máquina para hacer cosas',
en un aparato realmente entretenido, sobre el cual cada día aprendo
algo nuevo" (Jaime Salinas)





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pgsql: Add pgindent commit to git-blame-ignore-revs file.
@ 2021-06-28 16:47  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Peter Geoghegan <pg@bowt.ie>
  1 sibling, 1 reply; 9+ messages in thread

From: Tom Lane @ 2021-06-28 16:47 UTC (permalink / raw)
  To: Peter Geoghegan <pg@bowt.ie>; +Cc: Andrew Dunstan <andrew@dunslane.net>; pgsql-committers <pgsql-committers@lists.postgresql.org>

Peter Geoghegan <pg@bowt.ie> writes:
> On Mon, Jun 28, 2021 at 9:31 AM Andrew Dunstan <andrew@dunslane.net> wrote:
>> Hmm, did I miss something or do we need to update some instructions
>> somewhere?

> I did update the instructions in commit 8e638845, but perhaps I
> omitted to update something. What do you think?

The instructions for "Starting a New Development Cycle" perhaps need
a specific "see src/tools/pgindent/README".  I'd be inclined to
remove the separate mention of .git-blame-ignore-revs from "Pre-Beta
Tasks", too.  If you didn't read pgindent/README you might miss
more than just this.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pgsql: Add pgindent commit to git-blame-ignore-revs file.
@ 2021-06-28 16:50  Peter Geoghegan <pg@bowt.ie>
  parent: Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 9+ messages in thread

From: Peter Geoghegan @ 2021-06-28 16:50 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@alvh.no-ip.org>; +Cc: Andrew Dunstan <andrew@dunslane.net>; pgsql-committers <pgsql-committers@lists.postgresql.org>

On Mon, Jun 28, 2021 at 9:43 AM Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
> ... and now that I look at running that command, I notice that the date
> format it generates for me is different from what it did for you:

This is because our global git configs differ.

> Is it worth documenting whatever is causing the output to be this?
> I'm sure many of us would be bothered if the date format was not always
> the same in future entries.

I handled this in passing by making the instructions specify
"--date=iso", just for consistency. It's now:

git log --pretty=format:"%H # %cd %n# %s" $PGINDENTGITHASH -1 --date=iso

This shows the pgindent-commit author's timestamp in the author's own
timezone, plus ISO format. I believe that this addresses your concern.

I'll consider the question of changing exactly how things are
documented and hook into the release process separately, in my
response to Tom.

-- 
Peter Geoghegan





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pgsql: Add pgindent commit to git-blame-ignore-revs file.
@ 2021-06-28 19:48  Peter Geoghegan <pg@bowt.ie>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 9+ messages in thread

From: Peter Geoghegan @ 2021-06-28 19:48 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Andrew Dunstan <andrew@dunslane.net>; pgsql-committers <pgsql-committers@lists.postgresql.org>

On Mon, Jun 28, 2021 at 9:47 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> The instructions for "Starting a New Development Cycle" perhaps need
> a specific "see src/tools/pgindent/README".  I'd be inclined to
> remove the separate mention of .git-blame-ignore-revs from "Pre-Beta
> Tasks", too.  If you didn't read pgindent/README you might miss
> more than just this.

How about the approach taken in the attached patch?

I think that leaving the snippet on adding new entries to the file at
the top of the file is the right approach. I haven't changed that. I
do point this out explicitly, though.

-- 
Peter Geoghegan

Attachments:

0001-Improve-.git-blame-ignore-revs-release-workflow.patch (application/octet-stream, 2.0K) download From 357ae9f450408bfafa792765b00b6a0739628b04 Mon Sep 17 00:00:00 2001 From: Peter Geoghegan <pg@bowt.ie> Date: Mon, 28 Jun 2021 12:43:33 -0700 Subject: [PATCH] Improve .git-blame-ignore-revs release workflow. --- src/tools/RELEASE_CHANGES | 8 ++------ src/tools/pgindent/README | 3 ++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/tools/RELEASE_CHANGES b/src/tools/RELEASE_CHANGES index 5cf2a4dda3..fd9dae7e55 100644 --- a/src/tools/RELEASE_CHANGES +++ b/src/tools/RELEASE_CHANGES @@ -70,11 +70,7 @@ but there may be reasons to do them at other times as well. * Run mechanical code beautification tools: pgindent, pgperltidy, and "make reformat-dat-files" - (see src/tools/pgindent/README) - -* Update .git-blame-ignore-revs. It should contain all of the newly - created code beautification commits. Make sure that you use - full-length commit hashes for this. + (complete steps from src/tools/pgindent/README) * Renumber any manually-assigned OIDs between 8000 and 9999 to lower numbers, using renumber_oids.pl (see notes in bki.sgml) @@ -90,7 +86,7 @@ Starting a New Development Cycle ================================ * Typically, we do pgindent and perltidy runs just before branching, - as well as before beta + as well as before beta (complete steps from src/tools/pgindent/README) * Create a branch in git for maintenance of the previous release o on master branch, do: diff --git a/src/tools/pgindent/README b/src/tools/pgindent/README index 74412d29f8..103970c104 100644 --- a/src/tools/pgindent/README +++ b/src/tools/pgindent/README @@ -82,7 +82,8 @@ you used. 4) Add the newly created commits to the .git-blame-ignore-revs file so that "git blame" ignores the commits (for anybody that has opted-in - to using the ignore file). + to using the ignore file). Follow the instructions that appear at + the top of the .git-blame-ignore-revs file. Another "git commit" will be required for your ignore file changes. -- 2.27.0
^ permalink raw reply [nested|flat] 9+ messages in thread

* Re: pgsql: Add pgindent commit to git-blame-ignore-revs file.
@ 2021-06-28 19:53  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Peter Geoghegan <pg@bowt.ie>
  0 siblings, 1 reply; 9+ messages in thread

From: Tom Lane @ 2021-06-28 19:53 UTC (permalink / raw)
  To: Peter Geoghegan <pg@bowt.ie>; +Cc: Andrew Dunstan <andrew@dunslane.net>; pgsql-committers <pgsql-committers@lists.postgresql.org>

Peter Geoghegan <pg@bowt.ie> writes:
> On Mon, Jun 28, 2021 at 9:47 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The instructions for "Starting a New Development Cycle" perhaps need
>> a specific "see src/tools/pgindent/README".  I'd be inclined to
>> remove the separate mention of .git-blame-ignore-revs from "Pre-Beta
>> Tasks", too.  If you didn't read pgindent/README you might miss
>> more than just this.

> How about the approach taken in the attached patch?

WFM.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: pgsql: Add pgindent commit to git-blame-ignore-revs file.
@ 2021-06-28 20:10  Peter Geoghegan <pg@bowt.ie>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 9+ messages in thread

From: Peter Geoghegan @ 2021-06-28 20:10 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Andrew Dunstan <andrew@dunslane.net>; pgsql-committers <pgsql-committers@lists.postgresql.org>

On Mon, Jun 28, 2021 at 12:53 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > How about the approach taken in the attached patch?
>
> WFM.

Pushed. Thanks.

-- 
Peter Geoghegan





^ permalink  raw  reply  [nested|flat] 9+ messages in thread


end of thread, other threads:[~2021-06-28 20:10 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 16:26 pgsql: Add pgindent commit to git-blame-ignore-revs file. Peter Geoghegan <pg@bowt.ie>
2021-06-28 16:31 ` Andrew Dunstan <andrew@dunslane.net>
2021-06-28 16:35   ` Peter Geoghegan <pg@bowt.ie>
2021-06-28 16:43     ` Alvaro Herrera <alvherre@alvh.no-ip.org>
2021-06-28 16:50       ` Peter Geoghegan <pg@bowt.ie>
2021-06-28 16:47     ` Tom Lane <tgl@sss.pgh.pa.us>
2021-06-28 19:48       ` Peter Geoghegan <pg@bowt.ie>
2021-06-28 19:53         ` Tom Lane <tgl@sss.pgh.pa.us>
2021-06-28 20:10           ` Peter Geoghegan <pg@bowt.ie>

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