simon-git: putty-wishlist (master): putty-wishlist.git
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sat Dec 31 14:19:18 GMT 2016
TL;DR:
877a85b bugs2html.py: fix a typo in --help output.
26c3149 bugs2html.py: factor out a small GitRepo class.
eaa2c9b bugs2html.py: new git-ancestry-based Fixed-In inference.
b24dadd bugs2html.py: completely remove the old release_versions map!
Repository: https://git.tartarus.org/simon/putty-wishlist.git
On the web: https://git.tartarus.org/?p=simon/putty-wishlist.git
Branch updated: master
Committer: putty-wishlist.git
Date: 2016-12-31 14:19:18
commit 877a85b885d521b29f2c0a175b098b6d779acb66
web diff https://git.tartarus.org/?p=simon/putty-wishlist.git;a=commitdiff;h=877a85b885d521b29f2c0a175b098b6d779acb66;hp=36628daa21a8a616dcf54d7ede498c9af6eef069
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Dec 31 14:17:39 2016 +0000
bugs2html.py: fix a typo in --help output.
control/bugs2html.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 26c314977628677fc77b457a929136e39b0c0101
web diff https://git.tartarus.org/?p=simon/putty-wishlist.git;a=commitdiff;h=26c314977628677fc77b457a929136e39b0c0101;hp=877a85b885d521b29f2c0a175b098b6d779acb66
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Dec 31 14:17:39 2016 +0000
bugs2html.py: factor out a small GitRepo class.
This isn't much of a wrapper on just invoking git in a subprocess, but
it at least lets me do subprocess.check_output()-like calls, except
that I can provide input if necessary, and it arranges to put plenty
of diagnostic details in the exception traceback (including both
standard error and the full command line) if anything goes wrong.
control/bugs2html.py | 8 +++++---
control/gitrepo.py | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 3 deletions(-)
commit eaa2c9becb6dbf986dd974bdfe4f35c6a09254b9
web diff https://git.tartarus.org/?p=simon/putty-wishlist.git;a=commitdiff;h=eaa2c9becb6dbf986dd974bdfe4f35c6a09254b9;hp=26c314977628677fc77b457a929136e39b0c0101
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Dec 31 14:17:39 2016 +0000
bugs2html.py: new git-ancestry-based Fixed-In inference.
This replaces the previous system of relating each released version to
an svn revision, which was fragile, annoying to maintain,
fundamentally inelegant given that we don't even _use_ svn any more,
and limited what the commit graph in the git repository might be able
to look like without confusing the script. Now we do the much more
conceptually clean thing of simply asking: is the git tag
corresponding to the release a descendant of any git commit listed as
having fixed the bug?
Combined with the large number of git commits I retrospectively
inserted in lots of old bug records the other day, this version of the
script still generates bit-identical output to the Perl version -
every version number inferred by the new technique is the same as the
one that was inferred by the old one.
One side effect is that bugs2html.py now needs to access the main
PuTTY repository (you can't test git commit hashes for ancestorhood
without looking at a copy of the whole repo), which makes the script
run considerably more slowly in its default mode, because it will
clone the repo from scratch in a temporary directory. However, you can
provide a command-line option pointing to an existing checkout, and
then it will run much faster, by simply doing a 'git fetch' to update
a set of local mirroring refs. (And those refs live in a special
namespace 'refs/putty-wishlist', so they shouldn't even interfere with
any ordinary branches or tags in the same checkout.)
control/bugs2html.py | 69 +++++++++++++++---
control/gitreach.py | 196 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 257 insertions(+), 8 deletions(-)
commit b24dadd7603f8fd8d0d8fdbe33cde41098d2e6d0
web diff https://git.tartarus.org/?p=simon/putty-wishlist.git;a=commitdiff;h=b24dadd7603f8fd8d0d8fdbe33cde41098d2e6d0;hp=eaa2c9becb6dbf986dd974bdfe4f35c6a09254b9
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Dec 31 14:17:39 2016 +0000
bugs2html.py: completely remove the old release_versions map!
The new git ancestry system removes the need to manually describe the
branching structure surrounding past releases, because bugs2html.py
can now directly read the record of the branching structure from the
git repository itself. As a result, the only remaining need for a list
of release versions was in a few places where we just have to iterate
over all the releases in existence, or generate a different identifier
or piece of wording depending on whether a given version number refers
to a released or pre-release version. And those can be done using a
much simpler map of versions to boolean 'is this a pre-release?' flag,
which in turn can be auto-generated by scanning the list of git refs.
This means that in future I'll have to be consistent about naming
pre-release branches, but since git makes branch-renaming extremely
easy, that shouldn't be a problem.
control/bugs2html.py | 124 +++++++++++++--------------------------------------
1 file changed, 30 insertions(+), 94 deletions(-)
More information about the tartarus-commits
mailing list