From 5b7169c024a96dd56e3e49e9ff5abf89f31593b2 Mon Sep 17 00:00:00 2001 Message-Id: <5b7169c024a96dd56e3e49e9ff5abf89f31593b2.1746782466.git.mdw@distorted.org.uk> From: Mark Wooding Date: Thu, 20 Mar 2008 23:12:10 +0000 Subject: [PATCH] Make sure patches with no parents have an empty list of parents MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Organization: Straylight/Edgeware From: Karl Hasselström They used to have None instead of an empty list, which was inconsistent. (It went undetected for quite a while because StGit seldom needs to handle initial commits.) Signed-off-by: Karl Hasselström --- stgit/lib/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stgit/lib/git.py b/stgit/lib/git.py index 50dc4f1..cdfe885 100644 --- a/stgit/lib/git.py +++ b/stgit/lib/git.py @@ -204,7 +204,7 @@ class Commitdata(Repr): ) % (tree, parents, self.author, self.committer, self.message) @classmethod def parse(cls, repository, s): - cd = cls() + cd = cls(parents = []) lines = list(s.splitlines(True)) for i in xrange(len(lines)): line = lines[i].strip() -- [mdw]