git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: StGit: kha/{stable,safe,experimental} updated

From
Karl Hasselström <kha@treskal.com>
Date
Apr 14, 2008, 08:11 UTC
Message-ID
<20080414081139.GB9135@diana.vm.bytemark.co.uk>
In-Reply-To
<20080414070348.GA9135@diana.vm.bytemark.co.uk>
On 2008-04-14 09:03:48 +0200, Karl Hasselström wrote:
> Though I was under the impression that I'd tested it with a fully
> applied stack ... I guess the test suite needs an addition or two.

The real proble turned out to be a certain developer who remembers running the test suite before pushing out his branches, even though no such thing occurred. Ahem.

This fixes the bug for me; I'll be squashing it into one of the other patches tonight. Sorry for the breakage.

diff --git a/stgit/lib/log.py b/stgit/lib/log.py
index 083a546..1830cbd 100644
--- a/stgit/lib/log.py
+++ b/stgit/lib/log.py
@@ -84,7 +84,7 @@ class Log(object):
         def pl(name):
             patches = [x.split() for x in
                        self.commit.data.tree.data.entries[name][1]
-                       .data.str.strip().split('\n')]
+                       .data.str.strip().split('\n') if x]
             # TODO: handle case where we don't have the commit object.
             return ([pn for sha1, pn in patches],
                     dict((pn, repo.get_commit(sha1)) for sha1, pn in patches))
-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Karl HasselströmNext: Karl Hasselström
Message 4 of 6 in “StGit: kha/{stable,safe,experimental} updated”
  1. Karl HasselströmApr 13, 2008
  2. Samuel TardieuApr 14, 2008
  3. Karl HasselströmApr 14, 2008
  4. Karl HasselströmApr 14, 2008
  5. Karl HasselströmApr 14, 2008
  6. Karl HasselströmApr 15, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.