Lauri Ojansivu
9d045d3a3a
The CHANGELOG hash repair no longer breaks the links it should leave alone.
...
releases/fix-changelog-hashes.sh - run by build.sh's "Update git ..." after a
rebase and by release-all.sh before a release - decided a link was stale when
its commit was not an ancestor of HEAD. That is the wrong question. A commit
that lives only in an old release TAG is not on this branch, and GitHub serves
it perfectly well; calling it stale and repointing it sends the reader to a
DIFFERENT change, which is worse than the dead link it was trying to fix. Two
2019-era links were repaired that way while fixing the file today, and had to
be put back.
Staleness is now "no ref in this clone - branch or tag - reaches it", read once
from `git rev-list --all` rather than by walking the history per link (which
--all-sections would turn into thousands of walks; the whole file takes about
ten seconds).
When a hash really resolves to nothing, the replacement is now looked for in
order of how strong the evidence is:
1. same subject AND same author date - a rebase keeps the author date and
replaces the commit date, so it is the one to compare;
2. same subject, and only ONE commit has it - a subject like "Updated
ChangeLog." or "Bump versions for v9.99" repeats, and picking the newest
of several was a coin toss;
3. the same patch, by `git patch-id`, which is what survives a reword;
4. the object is gone entirely: if the first 9-12 characters still resolve,
the tail was invented (a short hash padded out to 40 characters) and the
commit the prefix names is the one meant.
Also: only `github.com/wekan/wekan` links are considered, so a link into
wekan/charts or a fork is not matched against this history; and
`--all-sections` (with `--dry-run`) checks the whole file, not only the section
being released - which is how the 106 dead links fixed in the previous commit
were found.
tests/changelogHashFix.test.cjs runs the script over a temporary CHANGELOG and
pins the behaviour: a current link and a tag-only link are untouched, a padded
hash is repointed to the commit its prefix names, an unresolvable hash is
reported rather than guessed, and another repo's link is left alone.
tests/changelogCommitLinks.test.cjs keeps guarding the wiring, with its
ancestry assertion replaced by the reachability one and a note saying why.
Thanks to xet7 !
2026-07-28 22:56:13 +03:00
..
2026-07-28 02:02:58 +03:00
2026-06-18 04:14:59 +03:00
2026-07-28 22:25:15 +03:00
2026-06-23 16:50:24 +03:00
2026-07-28 04:28:36 +03:00
2026-07-22 12:15:56 +03:00
2026-07-25 22:25:31 +03:00
2026-07-28 17:59:17 +03:00
2026-07-28 13:29:23 +03:00
2026-07-26 08:27:04 +03:00
2026-07-26 18:21:44 +03:00
2026-07-27 23:57:48 +03:00
2026-07-26 09:54:23 +03:00
2026-07-17 03:27:33 +03:00
2026-05-27 20:51:44 +03:00
2026-07-26 20:29:06 +03:00
2026-07-17 03:34:23 +03:00
2026-07-17 03:21:02 +03:00
2026-07-23 18:55:30 +03:00
2026-07-16 17:40:24 +03:00
2026-07-27 20:58:43 +03:00
2026-07-17 03:07:59 +03:00
2026-07-17 01:43:53 +03:00
2026-07-23 18:55:30 +03:00
2026-07-13 09:16:33 +03:00
2026-07-11 01:53:07 +03:00
2026-07-11 00:14:49 +03:00
2026-07-26 09:39:03 +03:00
2026-07-11 00:14:49 +03:00
2026-07-17 03:41:20 +03:00
2026-07-23 18:55:30 +03:00
2026-07-22 20:05:32 +03:00
2026-07-23 18:55:30 +03:00
2026-07-28 22:25:15 +03:00
2026-07-25 21:34:37 +03:00
2026-07-17 03:07:59 +03:00
2026-07-26 22:24:21 +03:00
2026-07-24 03:23:37 +03:00
2026-07-23 15:03:42 +03:00
2026-07-23 18:55:30 +03:00
2026-07-24 08:06:14 +03:00
2026-07-28 22:25:15 +03:00
2026-07-17 03:07:59 +03:00
2026-07-24 19:32:24 +03:00
2026-07-28 03:21:38 +03:00
2026-07-25 23:19:32 +03:00
2026-07-23 18:55:30 +03:00
2026-06-23 08:50:29 +03:00
2026-07-16 17:40:24 +03:00
2026-07-23 18:59:30 +03:00
2026-07-17 18:04:36 +03:00
2026-07-23 18:59:30 +03:00
2026-07-22 16:22:39 +03:00
2026-07-23 18:55:30 +03:00
2026-06-13 17:19:51 +03:00
2026-07-23 22:08:24 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-24 23:43:27 +03:00
2026-07-18 02:05:00 +03:00
2026-07-28 22:56:13 +03:00
2026-07-28 17:59:17 +03:00
2026-07-28 22:56:13 +03:00
2026-07-23 18:55:30 +03:00
2026-07-17 03:07:59 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-16 17:40:24 +03:00
2026-07-23 18:55:30 +03:00
2026-07-22 13:27:50 +03:00
2026-07-27 21:37:44 +03:00
2026-07-24 03:55:46 +03:00
2026-07-20 03:11:07 +03:00
2026-07-25 16:58:54 +03:00
2026-07-17 23:01:52 +03:00
2026-07-23 18:55:30 +03:00
2026-07-28 02:37:50 +03:00
2026-07-23 18:59:30 +03:00
2026-06-23 16:47:00 +03:00
2026-07-28 04:28:36 +03:00
2026-07-27 17:17:36 +03:00
2026-07-22 10:15:50 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 02:14:07 +03:00
2026-07-25 00:08:56 +03:00
2026-07-20 03:11:07 +03:00
2026-07-28 00:58:30 +03:00
2026-07-28 01:05:27 +03:00
2026-07-28 04:28:36 +03:00
2026-07-24 09:13:02 +03:00
2026-07-24 04:56:39 +03:00
2026-07-28 22:25:15 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-24 10:14:29 +03:00
2026-07-23 19:16:24 +03:00
2026-07-23 18:55:30 +03:00
2026-07-22 18:04:40 +03:00
2026-07-26 15:02:55 +03:00
2026-07-16 19:12:59 +03:00
2026-07-22 10:35:52 +03:00
2026-07-28 04:28:36 +03:00
2026-07-22 10:35:52 +03:00
2026-07-16 17:40:24 +03:00
2026-07-21 10:06:40 +03:00
2026-07-17 15:04:48 +03:00
2026-07-25 16:49:19 +03:00
2026-07-25 16:49:19 +03:00
2026-06-22 15:46:43 +03:00
2026-07-27 21:39:51 +03:00
2026-07-17 16:59:42 +03:00
2026-07-27 11:28:52 +03:00
2026-07-26 08:10:52 +03:00
2026-07-25 21:34:37 +03:00
2026-07-27 22:06:41 +03:00
2026-07-22 09:21:21 +03:00
2026-07-23 18:59:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-13 09:16:33 +03:00
2026-07-23 00:52:46 +03:00
2026-07-23 00:52:46 +03:00
2026-07-26 03:18:31 +03:00
2026-07-23 18:59:30 +03:00
2026-07-17 03:07:59 +03:00
2026-07-06 16:02:56 +03:00
2026-07-17 03:36:07 +03:00
2026-07-09 09:45:53 +03:00
2026-07-26 00:23:35 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 02:14:07 +03:00
2026-07-17 03:34:23 +03:00
2026-07-28 14:38:49 +03:00
2026-07-22 09:21:21 +03:00
2026-07-19 18:36:11 +03:00
2026-07-17 03:07:59 +03:00
2026-07-16 10:17:13 +02:00
2026-07-17 03:07:59 +03:00
2026-07-13 09:16:33 +03:00
2026-07-17 03:07:59 +03:00
2026-07-09 09:45:53 +03:00
2026-07-28 17:59:17 +03:00
2026-06-23 16:48:59 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 02:14:07 +03:00
2026-07-22 13:02:42 +03:00
2026-07-17 16:59:42 +03:00
2026-07-22 16:22:39 +03:00
2026-07-23 19:16:24 +03:00
2026-07-28 04:28:36 +03:00
2026-07-28 17:59:17 +03:00
2026-05-27 20:51:44 +03:00
2026-07-17 04:52:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-19 18:36:11 +03:00
2026-07-17 03:07:59 +03:00
2026-07-09 10:09:32 +03:00
2026-07-25 21:40:30 +03:00
2026-07-25 21:02:54 +03:00
2026-07-25 22:34:13 +03:00
2026-07-28 04:28:36 +03:00
2026-07-25 23:00:15 +03:00
2026-07-25 22:03:07 +03:00
2026-07-25 21:34:37 +03:00
2026-07-26 21:56:16 +03:00
2026-07-11 00:14:49 +03:00
2026-07-17 23:48:26 +03:00
2026-07-28 17:59:17 +03:00
2026-07-06 10:55:29 +03:00
2026-07-25 22:13:46 +03:00
2026-07-17 03:07:59 +03:00
2026-07-24 16:18:24 +03:00
2026-07-17 03:07:59 +03:00
2026-07-17 03:07:59 +03:00
2026-07-26 15:16:16 +03:00
2026-07-09 02:14:07 +03:00
2026-07-27 23:39:37 +03:00
2026-07-28 16:44:30 +03:00
2026-07-17 18:29:28 +03:00
2026-07-26 20:01:45 +03:00
2026-07-27 22:06:41 +03:00
2026-07-26 01:58:15 +03:00
2026-07-24 03:23:37 +03:00
2026-07-23 18:55:30 +03:00
2026-07-22 12:15:56 +03:00
2026-07-28 04:28:36 +03:00
2026-07-22 21:48:29 +03:00
2026-07-17 03:34:23 +03:00
2026-07-06 10:33:15 +03:00
2026-07-21 10:06:40 +03:00
2026-07-21 10:06:41 +03:00
2026-07-21 10:06:40 +03:00
2026-07-21 10:06:40 +03:00
2026-07-28 02:02:58 +03:00
2026-07-09 02:14:07 +03:00
2026-07-28 03:26:48 +03:00
2026-06-23 08:50:29 +03:00
2026-07-22 12:37:49 +03:00
2026-07-09 02:14:07 +03:00
2026-07-28 04:28:36 +03:00
2026-07-09 09:45:53 +03:00
2026-07-09 02:14:07 +03:00
2026-07-16 17:40:24 +03:00
2026-07-22 10:15:50 +03:00
2026-07-28 04:28:36 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-28 03:49:45 +03:00
2026-07-17 21:40:37 +03:00
2026-07-28 03:39:24 +03:00
2026-07-17 03:36:50 +03:00
2026-07-19 18:36:11 +03:00
2026-07-09 09:45:53 +03:00
2026-07-28 12:25:55 +03:00
2026-07-19 12:22:56 +03:00
2026-07-25 02:28:58 +03:00
2026-07-26 09:48:47 +03:00
2026-07-26 23:40:55 +03:00
2026-07-18 19:42:19 +03:00
2026-07-25 22:08:38 +03:00
2026-07-28 14:49:41 +03:00
2026-07-16 17:40:24 +03:00
2026-07-25 16:22:10 +03:00
2026-07-17 20:20:06 +03:00
2026-07-23 18:55:30 +03:00
2026-07-26 08:27:04 +03:00
2026-07-28 12:13:03 +03:00
2026-07-23 18:59:30 +03:00
2026-07-24 10:14:29 +03:00
2026-07-13 09:16:33 +03:00
2026-07-13 09:16:33 +03:00
2026-07-17 03:21:02 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-16 18:46:09 +03:00
2026-07-17 03:34:23 +03:00
2026-07-28 16:37:13 +03:00
2026-07-17 03:44:38 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 09:45:53 +03:00
2026-07-28 12:25:55 +03:00
2026-07-22 12:15:56 +03:00
2026-07-25 20:50:20 +03:00
2026-07-26 00:17:58 +03:00
2026-07-26 07:59:30 +03:00
2026-07-26 07:59:30 +03:00
2026-07-26 07:59:30 +03:00
2026-07-28 04:28:36 +03:00
2026-07-28 03:49:45 +03:00
2026-07-26 08:33:21 +03:00
2026-07-17 20:46:10 +03:00
2026-07-28 12:25:55 +03:00
2026-07-28 04:28:36 +03:00
2026-06-13 17:19:51 +03:00
2026-06-13 20:15:04 +03:00
2026-06-13 17:19:51 +03:00
2026-07-28 04:28:36 +03:00
2026-07-18 02:16:53 +03:00
2026-07-17 18:44:14 +03:00
2026-07-25 22:25:31 +03:00
2026-07-20 03:11:07 +03:00
2026-07-23 18:55:30 +03:00
2026-07-06 11:50:28 +03:00
2026-07-23 18:55:30 +03:00
2025-12-22 23:18:01 +02:00
2026-06-12 20:15:56 +03:00
2026-07-28 12:13:21 +03:00
2026-07-21 19:43:48 +03:00
2026-07-25 23:52:31 +03:00