Skip to content

Commit c483b4c

Browse files
committed
Meta: rename 'pu' to 'seen'
1 parent 60abbb4 commit c483b4c

File tree

11 files changed

+44
-44
lines changed

11 files changed

+44
-44
lines changed

CheckPush

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ for range in $(
4545
fi
4646
prev_branch=$branch
4747
done
48-
) pu..jch
48+
) seen..jch
4949
do
5050
lg=$(git log --oneline "$range")
5151
if test -n "$lg"
@@ -59,7 +59,7 @@ if ! next_equiv=$(git rev-parse --verify 'jch^{/^### match next}' 2>/dev/null) |
5959
! git diff --stat --exit-code next $next_equiv
6060
then
6161
next_tree=$(git rev-parse next^{tree}) &&
62-
next_equiv=$(git rev-list --first-parent master..pu |
62+
next_equiv=$(git rev-list --first-parent master..seen |
6363
xargs -n1 sh -c '
6464
echo $(git rev-parse $1^{tree}) $1
6565
' - | sed -n -e "s/^$next_tree //p"
@@ -69,12 +69,12 @@ fi
6969
if test -n "$next_equiv"
7070
then
7171
jch=$(git rev-list --first-parent master..jch | wc -l) &&
72-
pu=$(git rev-list --first-parent master..pu | wc -l) &&
72+
seen=$(git rev-list --first-parent master..seen | wc -l) &&
7373
next=$(git rev-list --first-parent master..$next_equiv | wc -l) &&
7474
if test $jch -le $next
7575
then
76-
echo "master..$jch..jch..$next..next..$pu..pu"
76+
echo "master..$jch..jch..$next..next..$seen..seen"
7777
else
78-
echo "master..$next..next..$jch..jch..$pu..pu"
78+
echo "master..$next..next..$jch..jch..$seen..seen"
7979
fi
8080
fi

Doit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
test -n "$branches" || branches='next master maint jch pu'
3+
test -n "$branches" || branches='next master maint jch seen'
44

55
changed=
66
for b in $branches

Dothem

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ then
6565
exit 1
6666
fi
6767
fi
68-
test -n "$branches" || branches='next master maint jch pu'
68+
test -n "$branches" || branches='next master maint jch seen'
6969
test -n "$jobs" || jobs=-j2
7070

7171
find_installed () {

KO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ fi
2929
git show-branch --topo-order $ko/master master
3030
git show-branch --topo-order $ko/maint maint
3131
git show-branch --topo-order $ko/next next
32-
git show-branch --topo-order $ko/pu pu
32+
git show-branch --topo-order $ko/seen seen

MaintNotes

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ viewed online at:
152152
* How various branches are used.
153153

154154
There are four branches in git.git repository that track the source tree
155-
of git: "master", "maint", "next", and "pu".
155+
of git: "master", "maint", "next", and "seen".
156156

157157
The "master" branch is meant to contain what are very well tested and
158158
ready to be used in a production setting. Every now and then, a
@@ -196,23 +196,23 @@ is merged to "master". Please help this process by building & using the
196196
"next" branch for your daily work, and reporting any new bugs you find to
197197
the mailing list, before the breakage is merged down to the "master".
198198

199-
The "pu" (proposed updates) branch bundles all the remaining topic
200-
branches the maintainer happens to have seen. There is no guarantee that
201-
the maintainer has enough bandwidth to pick up any and all topics that
202-
are remotely promising from the list traffic, so please do not read
203-
too much into a topic being on (or not on) the "pu" branch. This
204-
branch is mainly to remind the maintainer that the topics in them may
205-
turn out to be interesting when they are polished, nothing more. The
206-
topics on this branch aren't usually complete, well tested, or well
207-
documented and they often need further work. When a topic that was
208-
in "pu" proves to be in a testable shape, it is merged to "next".
209-
210-
You can run "git log --first-parent master..pu" to see what topics are
199+
The "seen" (formerly "pu", proposed updates) branch bundles all the
200+
remaining topic branches the maintainer happens to have seen. There
201+
is no guarantee that the maintainer has enough bandwidth to pick up any
202+
and all topics that are remotely promising from the list traffic, so
203+
please do not read too much into a topic being on (or not on) the "seen"
204+
branch. This branch is mainly to remind the maintainer that the topics
205+
in them may turn out to be interesting when they are polished, nothing
206+
more. The topics on this branch aren't usually complete, well tested,
207+
or well documented and they often need further work. When a topic that
208+
was in "seen" proves to be in a testable shape, it is merged to "next".
209+
210+
You can run "git log --first-parent master..seen" to see what topics are
211211
currently in flight. Sometimes, an idea that looked promising turns out
212-
to be not so good and the topic can be dropped from "pu" in such a case.
212+
to be not so good and the topic can be dropped from "seen" in such a case.
213213
The output of the above "git log" talks about a "jch" branch, which is an
214-
early part of the "pu" branch; that branch contains all topics that
215-
are in "next" and a bit more (but not all of "pu") and is used by the
214+
early part of the "seen" branch; that branch contains all topics that
215+
are in "next" and a bit more (but not all of "seen") and is used by the
216216
maintainer for his daily work.
217217

218218
The two branches "master" and "maint" are never rewound, and "next"
@@ -222,7 +222,7 @@ using the topics that didn't make the cut in the feature release.
222222
Some topics that used to be in "next" during the previous cycle may
223223
get ejected from "next" when this happens.
224224

225-
A natural consequence of how "next" and "pu" bundles topics together
225+
A natural consequence of how "next" and "seen" bundles topics together
226226
is that until a topic is merged to "next", updates to it is expected
227227
by replacing the patch(es) in the topic with an improved version,
228228
and once a topic is merged to "next", updates to it needs to come as

Make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export LANG LC_ALL
215215
branch=$(determine_branch)
216216

217217
case "$branch" in
218-
next | maint | master | pu | jch)
218+
next | maint | master | seen | jch)
219219
prefix="$inst_prefix/git-$branch"
220220
;;
221221
snap)

V

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ inst_prefix=$(
1414
echo $HOME
1515
)
1616

17-
for v in maint master next pu jch
17+
for v in maint master next seen jch
1818
do
1919
installed=$(
2020
test -f "$inst_prefix/git-$v/bin/git" &&

WCBCC

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
BASE=${1-HEAD}
44

55
(
6-
echo pu
6+
echo seen
77
sed -ne 's/^\* \([^ ]*\) ([-0-9]*) [1-9][0-9]* commits\{0,1\}$/\1/p' \
88
Meta/whats-cooking.txt |
99
while read branch

cook

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Returns a hash:
107107
=cut
108108

109109
sub get_commit {
110-
my (@base) = qw(master next pu);
110+
my (@base) = qw(master next seen);
111111
my $fh;
112112
open($fh, '-|',
113113
qw(git for-each-ref),
@@ -182,7 +182,7 @@ sub get_commit {
182182
my $co = $commit{$sha1};
183183
if (exists $co->{'branch'}{'next'}) {
184184
$sign = '+';
185-
} elsif (exists $co->{'branch'}{'pu'}) {
185+
} elsif (exists $co->{'branch'}{'seen'}) {
186186
$sign = '-';
187187
} else {
188188
$sign = '.';
@@ -254,11 +254,11 @@ sub get_commit {
254254
# NEEDSWORK:
255255
# This is done a bit too early. We grabbed all
256256
# under refs/heads/??/* without caring if they are
257-
# merged to 'pu' yet, and it is correct because
257+
# merged to 'seen' yet, and it is correct because
258258
# we want to describe a topic that is in the old
259-
# edition that is tentatively kicked out of 'pu'.
259+
# edition that is tentatively kicked out of 'seen'.
260260
# However, we do not want to say a topic is used
261-
# by a new topic that is not yet in 'pu'!
261+
# by a new topic that is not yet in 'seen'!
262262
my $relation = describe_relation($topic{$branch});
263263
$topic{$branch}{'desc'} = $head . $list;
264264
if ($relation) {
@@ -286,9 +286,9 @@ sub blurb_text {
286286
$next_at ||= '0' x 40;
287287
$text ||= <<'EOF';
288288
Here are the topics that have been cooking. Commits prefixed with '-' are
289-
only in 'pu' (proposed updates) while commits prefixed with '+' are in 'next'.
290-
The ones marked with '.' do not appear in any of the integration branches,
291-
but I am still holding onto them.
289+
only in 'seen' (formerly 'pu'---proposed updates) while commits prefixed
290+
with '+' are in 'next'. The ones marked with '.' do not appear in any of
291+
the integration branches, but I am still holding onto them.
292292
293293
You can find the changes described here in the integration branches of the
294294
repositories listed at
@@ -546,7 +546,7 @@ sub update_issue {
546546
return $incremental;
547547
}
548548

549-
sub topic_in_pu {
549+
sub topic_in_seen {
550550
my ($topic_desc) = @_;
551551
for my $line (split(/\n/, $topic_desc)) {
552552
if ($line =~ /^ [+-] /) {
@@ -624,7 +624,7 @@ sub merge_cooking {
624624
for my $topic (sort keys %{$current}) {
625625
if (!exists $td->{$topic}) {
626626
# Ignore new topics without anything merged
627-
if (topic_in_pu($current->{$topic}{'desc'})) {
627+
if (topic_in_seen($current->{$topic}{'desc'})) {
628628
push @new_topic, $topic;
629629
}
630630
next;
@@ -737,7 +737,7 @@ sub wildo {
737737
if (/^\* (\S+) \(([-0-9]+)\) (\d+) commits?$/) {
738738
wildo_flush_topic($in_section, \%what, $topic);
739739

740-
# tip-date, next-date, topic, count, pu-count
740+
# tip-date, next-date, topic, count, seen-count
741741
$topic = [$2, $too_recent, $1, $3, 0];
742742
$in_desc = undef;
743743
next;
@@ -778,10 +778,10 @@ sub wildo {
778778
for $topic (sort { (($a->[1] cmp $b->[1]) ||
779779
($a->[0] cmp $b->[0])) }
780780
@{$what{$what}}) {
781-
my ($tip, $next, $name, $count, $pu) = @$topic;
781+
my ($tip, $next, $name, $count, $seen) = @$topic;
782782
my ($sign);
783783
$tip =~ s/^\d{4}-//;
784-
if (($next eq $too_recent) || (0 < $pu)) {
784+
if (($next eq $too_recent) || (0 < $seen)) {
785785
$sign = "-";
786786
$next = " " x 6;
787787
} else {

git-topic.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
my $topic_pattern = '??*/*';
1010
my $base = 'next';
11-
my @stage = qw(next pu);
11+
my @stage = qw(next seen);
1212
my @mark = ('.', '?', '-', '+');
1313
my $all = 0;
1414
my $merges = 0;

0 commit comments

Comments
 (0)