pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Adding commit details to SGML release notes
7+ messages / 4 participants
[nested] [flat]

* Adding commit details to SGML release notes
@ 2015-08-28 21:12 Bruce Momjian <bruce@momjian.us>
  2015-08-28 21:27 ` Re: Adding commit details to SGML release notes Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Bruce Momjian @ 2015-08-28 21:12 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: PostgreSQL-development <pgsql-hackers@postgreSQL.org>

On Tue, Jun 30, 2015 at 07:00:45PM +0000, Andres Freund wrote:
> Improve 9.5 release notes.
> 
> 1) Add sgml comments referencing commits. This is useful to search for
>    missing items etc.
> 
>    The comments containing the commit notes are an excerpt from:
>    git log --date=short \
>        --pretty='format:%cd [%h] %<(8,trunc)%cN: %<(48,trunc)%s%n%n%w(,4,4)%b%n' \
>        $(git merge-base origin/master upstream/REL9_4_STABLE)..origin/master

To simplify the creation of the release note with the commit tag as an
SGML comment, I think src/tools/git_changelog should be modified to
output this string.  The format "trunc" feature was added in git 1.8.3. 
Is that old enough for everyone?

I am not going to need this until the 9.6 release notes.  Should I add
it or someone else?

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

  + Everyone has their own god. +


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



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

* Re: Adding commit details to SGML release notes
  2015-08-28 21:12 Adding commit details to SGML release notes Bruce Momjian <bruce@momjian.us>
@ 2015-08-28 21:27 ` Alvaro Herrera <alvherre@2ndquadrant.com>
  2015-08-28 21:32   ` Re: Adding commit details to SGML release notes Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 7+ messages in thread

From: Alvaro Herrera @ 2015-08-28 21:27 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: Andres Freund <andres@anarazel.de>; PostgreSQL-development <pgsql-hackers@postgreSQL.org>

Bruce Momjian wrote:

> To simplify the creation of the release note with the commit tag as an
> SGML comment, I think src/tools/git_changelog should be modified to
> output this string.  The format "trunc" feature was added in git 1.8.3. 
> Is that old enough for everyone?

Hmm, that's pretty new actually,

commit edca4152560522a431a51fc0a06147fc680b5b18
Author:     Junio C Hamano <gitster@pobox.com>
AuthorDate: Fri May 24 11:34:46 2013 -0700
CommitDate: Fri May 24 11:34:46 2013 -0700

    Git 1.8.3


Since it's only needed by people preparing the release notes, I would
guess it's okay --- evidently Tom was able to use it.

Maybe an option is to use trunc when git 1.8.3 or newer is detected, and
plain (no trunc) otherwise?

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



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

* Re: Adding commit details to SGML release notes
  2015-08-28 21:12 Adding commit details to SGML release notes Bruce Momjian <bruce@momjian.us>
  2015-08-28 21:27 ` Re: Adding commit details to SGML release notes Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2015-08-28 21:32   ` Tom Lane <tgl@sss.pgh.pa.us>
  2015-08-28 21:49     ` Re: Adding commit details to SGML release notes Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 7+ messages in thread

From: Tom Lane @ 2015-08-28 21:32 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: Bruce Momjian <bruce@momjian.us>; Andres Freund <andres@anarazel.de>; PostgreSQL-development <pgsql-hackers@postgresql.org>

Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Bruce Momjian wrote:
>> To simplify the creation of the release note with the commit tag as an
>> SGML comment, I think src/tools/git_changelog should be modified to
>> output this string.  The format "trunc" feature was added in git 1.8.3. 
>> Is that old enough for everyone?

> Since it's only needed by people preparing the release notes, I would
> guess it's okay --- evidently Tom was able to use it.

Well, that's only because I'm running a hand-installed git rather than
what RHEL6 comes with.

> Maybe an option is to use trunc when git 1.8.3 or newer is detected, and
> plain (no trunc) otherwise?

Personally I find that truncated output to be pretty unreadable, and
would strongly object to changing git_changelog so that that was the only
possible format.  However, I have no objection to making it an option
("git_changelog --short", or so), and that would dodge any concerns about
failing on git versions without the feature.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



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

* Re: Adding commit details to SGML release notes
  2015-08-28 21:12 Adding commit details to SGML release notes Bruce Momjian <bruce@momjian.us>
  2015-08-28 21:27 ` Re: Adding commit details to SGML release notes Alvaro Herrera <alvherre@2ndquadrant.com>
  2015-08-28 21:32   ` Re: Adding commit details to SGML release notes Tom Lane <tgl@sss.pgh.pa.us>
@ 2015-08-28 21:49     ` Bruce Momjian <bruce@momjian.us>
  2015-08-28 22:03       ` Re: Adding commit details to SGML release notes Tom Lane <tgl@sss.pgh.pa.us>
  2015-08-28 22:23       ` Re: Adding commit details to SGML release notes Andres Freund <andres@anarazel.de>
  0 siblings, 2 replies; 7+ messages in thread

From: Bruce Momjian @ 2015-08-28 21:49 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; Andres Freund <andres@anarazel.de>; PostgreSQL-development <pgsql-hackers@postgresql.org>

On Fri, Aug 28, 2015 at 05:32:38PM -0400, Tom Lane wrote:
> Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> > Bruce Momjian wrote:
> >> To simplify the creation of the release note with the commit tag as an
> >> SGML comment, I think src/tools/git_changelog should be modified to
> >> output this string.  The format "trunc" feature was added in git 1.8.3. 
> >> Is that old enough for everyone?
> 
> > Since it's only needed by people preparing the release notes, I would
> > guess it's okay --- evidently Tom was able to use it.
> 
> Well, that's only because I'm running a hand-installed git rather than
> what RHEL6 comes with.

Yes, I am running git 1.7.2.5 on Debian Squeeze, but I will be upgrading
in the next month, before the next major release notes are due, so I
would avoid the problem that way.  :-)

> > Maybe an option is to use trunc when git 1.8.3 or newer is detected, and
> > plain (no trunc) otherwise?
> 
> Personally I find that truncated output to be pretty unreadable, and
> would strongly object to changing git_changelog so that that was the only
> possible format.  However, I have no objection to making it an option
> ("git_changelog --short", or so), and that would dodge any concerns about
> failing on git versions without the feature.

Well, my idea would be to change this git_changelog line:

	Branch: master [01051a987] 2015-07-09 11:38:34 +0300

to output something in the new 'trunc' format, so we have it right next
to the release note text and the release notes easily get that comment.

If we _don't_ do that, how do you easily get those lines into the
release notes?  I can't imagine how hard it was for Andres to add that
text to the 9.5 release notes:

	http://www.postgresql.org/message-id/E1ZA0lx-0006FM-PU@gemulon.postgresql.org

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

  + Everyone has their own god. +


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



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

* Re: Adding commit details to SGML release notes
  2015-08-28 21:12 Adding commit details to SGML release notes Bruce Momjian <bruce@momjian.us>
  2015-08-28 21:27 ` Re: Adding commit details to SGML release notes Alvaro Herrera <alvherre@2ndquadrant.com>
  2015-08-28 21:32   ` Re: Adding commit details to SGML release notes Tom Lane <tgl@sss.pgh.pa.us>
  2015-08-28 21:49     ` Re: Adding commit details to SGML release notes Bruce Momjian <bruce@momjian.us>
@ 2015-08-28 22:03       ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 7+ messages in thread

From: Tom Lane @ 2015-08-28 22:03 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; Andres Freund <andres@anarazel.de>; PostgreSQL-development <pgsql-hackers@postgresql.org>

Bruce Momjian <bruce@momjian.us> writes:
> On Fri, Aug 28, 2015 at 05:32:38PM -0400, Tom Lane wrote:
>> Personally I find that truncated output to be pretty unreadable, and
>> would strongly object to changing git_changelog so that that was the only
>> possible format.  However, I have no objection to making it an option
>> ("git_changelog --short", or so), and that would dodge any concerns about
>> failing on git versions without the feature.

> Well, my idea would be to change this git_changelog line:

> 	Branch: master [01051a987] 2015-07-09 11:38:34 +0300

> to output something in the new 'trunc' format, so we have it right next
> to the release note text and the release notes easily get that comment.

Right, I'm merely saying that I want the current format by default, and
the trunc format only with a command-line option.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



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

* Re: Adding commit details to SGML release notes
  2015-08-28 21:12 Adding commit details to SGML release notes Bruce Momjian <bruce@momjian.us>
  2015-08-28 21:27 ` Re: Adding commit details to SGML release notes Alvaro Herrera <alvherre@2ndquadrant.com>
  2015-08-28 21:32   ` Re: Adding commit details to SGML release notes Tom Lane <tgl@sss.pgh.pa.us>
  2015-08-28 21:49     ` Re: Adding commit details to SGML release notes Bruce Momjian <bruce@momjian.us>
@ 2015-08-28 22:23       ` Andres Freund <andres@anarazel.de>
  2015-08-28 22:31         ` Re: Adding commit details to SGML release notes Bruce Momjian <bruce@momjian.us>
  1 sibling, 1 reply; 7+ messages in thread

From: Andres Freund @ 2015-08-28 22:23 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Alvaro Herrera <alvherre@2ndquadrant.com>; PostgreSQL-development <pgsql-hackers@postgresql.org>

On 2015-08-28 17:49:35 -0400, Bruce Momjian wrote:
> If we _don't_ do that, how do you easily get those lines into the
> release notes?  I can't imagine how hard it was for Andres to add that
> text to the 9.5 release notes:

Formatting the log wasn't the hard part, that was finding out which item
in the release notes corresponds to which commits. Sometimes that's not
that easy to see. For the formatting I had an emacs macro.

Greetings,

Andres Freund


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



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

* Re: Adding commit details to SGML release notes
  2015-08-28 21:12 Adding commit details to SGML release notes Bruce Momjian <bruce@momjian.us>
  2015-08-28 21:27 ` Re: Adding commit details to SGML release notes Alvaro Herrera <alvherre@2ndquadrant.com>
  2015-08-28 21:32   ` Re: Adding commit details to SGML release notes Tom Lane <tgl@sss.pgh.pa.us>
  2015-08-28 21:49     ` Re: Adding commit details to SGML release notes Bruce Momjian <bruce@momjian.us>
  2015-08-28 22:23       ` Re: Adding commit details to SGML release notes Andres Freund <andres@anarazel.de>
@ 2015-08-28 22:31         ` Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Bruce Momjian @ 2015-08-28 22:31 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Alvaro Herrera <alvherre@2ndquadrant.com>; PostgreSQL-development <pgsql-hackers@postgresql.org>

On Sat, Aug 29, 2015 at 12:23:30AM +0200, Andres Freund wrote:
> On 2015-08-28 17:49:35 -0400, Bruce Momjian wrote:
> > If we _don't_ do that, how do you easily get those lines into the
> > release notes?  I can't imagine how hard it was for Andres to add that
> > text to the 9.5 release notes:
> 
> Formatting the log wasn't the hard part, that was finding out which item
> in the release notes corresponds to which commits. Sometimes that's not
> that easy to see. For the formatting I had an emacs macro.

Right, the formatting is easy with any good editor, but having the text
there as you are writing the release notes is a huge time-saver, and if
we want that text, it should be present in the git_changelog output when
creating those release notes.

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

  + Everyone has their own god. +


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



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


end of thread, other threads:[~2015-08-28 22:31 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-08-28 21:12 Adding commit details to SGML release notes Bruce Momjian <bruce@momjian.us>
2015-08-28 21:27 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2015-08-28 21:32   ` Tom Lane <tgl@sss.pgh.pa.us>
2015-08-28 21:49     ` Bruce Momjian <bruce@momjian.us>
2015-08-28 22:03       ` Tom Lane <tgl@sss.pgh.pa.us>
2015-08-28 22:23       ` Andres Freund <andres@anarazel.de>
2015-08-28 22:31         ` Bruce Momjian <bruce@momjian.us>

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