Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ce1dcd46
Commit
ce1dcd46
authored
Sep 25, 2010
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename git_topo_order -> git_changelog, per discussion.
parent
c8c03d72
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
src/tools/RELEASE_CHANGES
src/tools/RELEASE_CHANGES
+3
-3
src/tools/git_changelog
src/tools/git_changelog
+9
-3
No files found.
src/tools/RELEASE_CHANGES
View file @
ce1dcd46
...
@@ -6,7 +6,7 @@ For All Releases (major, minor, beta, RC)
...
@@ -6,7 +6,7 @@ For All Releases (major, minor, beta, RC)
(by packager) (beta)
(by packager) (beta)
* Release notes
* Release notes
o run git log and, if useful, src/tools/git_
topo_order
o run git log and, if useful, src/tools/git_
changelog
o update doc/src/sgml/release.sgml
o update doc/src/sgml/release.sgml
o run spellchecker on result
o run spellchecker on result
o add SGML markup
o add SGML markup
...
@@ -31,7 +31,7 @@ For Major Releases
...
@@ -31,7 +31,7 @@ For Major Releases
(in addition to the above)
(in addition to the above)
* Release notes
* Release notes
o use git log or src/tools/git_
topo_order
to find the relevant commits
o use git log or src/tools/git_
changelog
to find the relevant commits
o check completion of items that have been marked as completed at
o check completion of items that have been marked as completed at
http://wiki.postgresql.org/wiki/Todo
http://wiki.postgresql.org/wiki/Todo
o remove completed TODO items
o remove completed TODO items
...
@@ -76,7 +76,7 @@ Starting a New Development Cycle
...
@@ -76,7 +76,7 @@ Starting a New Development Cycle
Creating Back-Branch Release Notes
Creating Back-Branch Release Notes
==================================
==================================
* Run src/tools/git_
topo_order
to generate a list of relevant commits
* Run src/tools/git_
changelog
to generate a list of relevant commits
* On the git master branch, edit and create SGML markup for the most recent
* On the git master branch, edit and create SGML markup for the most recent
branch in that branch's release-N.N.sgml file
branch in that branch's release-N.N.sgml file
...
...
src/tools/git_
topo_order
→
src/tools/git_
changelog
View file @
ce1dcd46
#!/usr/bin/perl
#!/usr/bin/perl
#
# src/tools/git_changelog
#
#
# Display all commits on active branches, merging together commits from
# Display all commits on active branches, merging together commits from
# different branches that occur close together in time and with identical
# different branches that occur close together in time and with identical
...
@@ -18,7 +20,7 @@
...
@@ -18,7 +20,7 @@
# for the portion of the history we imported from CVS, we expect that they
# for the portion of the history we imported from CVS, we expect that they
# will be.
# will be.
#
#
# Even though we don't use timestamps to order commits,
it is
used to
# Even though we don't use timestamps to order commits,
they are
used to
# identify which commits happened at about the same time, for the purpose
# identify which commits happened at about the same time, for the purpose
# of matching up commits from different branches.
# of matching up commits from different branches.
#
#
...
@@ -29,9 +31,13 @@ require Date::Calc;
...
@@ -29,9 +31,13 @@ require Date::Calc;
require
Getopt::
Long
;
require
Getopt::
Long
;
require
IPC::
Open2
;
require
IPC::
Open2
;
# Adjust this list when the set of active branches changes.
my
@BRANCHES
=
qw(master REL9_0_STABLE REL8_4_STABLE REL8_3_STABLE
my
@BRANCHES
=
qw(master REL9_0_STABLE REL8_4_STABLE REL8_3_STABLE
REL8_2_STABLE REL8_1_STABLE REL8_0_STABLE REL7_4_STABLE)
;
REL8_2_STABLE REL8_1_STABLE REL8_0_STABLE REL7_4_STABLE)
;
# Might want to make this parameter user-settable.
my
$timestamp_slop
=
600
;
my
$since
;
my
$since
;
Getopt::Long::
GetOptions
('
since=s
'
=>
\
$since
)
||
usage
();
Getopt::Long::
GetOptions
('
since=s
'
=>
\
$since
)
||
usage
();
usage
()
if
@ARGV
;
usage
()
if
@ARGV
;
...
@@ -114,7 +120,7 @@ sub push_commit {
...
@@ -114,7 +120,7 @@ sub push_commit {
my
$ts
=
parse_datetime
(
$c
->
{'
date
'});
my
$ts
=
parse_datetime
(
$c
->
{'
date
'});
my
$cc
;
my
$cc
;
for
my
$candidate
(
@
{
$all_commits
{
$ht
}})
{
for
my
$candidate
(
@
{
$all_commits
{
$ht
}})
{
if
(
abs
(
$ts
-
$candidate
->
{'
timestamp
'})
<
600
if
(
abs
(
$ts
-
$candidate
->
{'
timestamp
'})
<
$timestamp_slop
&&
!
exists
$candidate
->
{'
branch_position
'}{
$c
->
{'
branch
'}})
&&
!
exists
$candidate
->
{'
branch_position
'}{
$c
->
{'
branch
'}})
{
{
$cc
=
$candidate
;
$cc
=
$candidate
;
...
@@ -149,7 +155,7 @@ sub parse_datetime {
...
@@ -149,7 +155,7 @@ sub parse_datetime {
sub
usage
{
sub
usage
{
print
STDERR
<<EOM;
print
STDERR
<<EOM;
Usage: git
-topo-order
[--since=SINCE]
Usage: git
_changelog
[--since=SINCE]
EOM
EOM
exit
1
;
exit
1
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment