{"thread":{"id":"25800","subject":"[PATCH] StGit: export: fix base commit reporting in series file","startedAt":"2010-11-21T15:57:06Z","lastAt":"2010-11-24T16:57:48Z","messageCount":2,"participants":["Paulius Zaleckas","Catalin Marinas"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"156288","messageId":"20101121155706.16544.20984.stgit@localhost.localdomain","threadId":"25800","inReplyTo":null,"subject":"[PATCH] StGit: export: fix base commit reporting in series file","fromName":"Paulius Zaleckas","fromEmail":"paulius.zaleckas@gmail.com","sentAt":"2010-11-21T15:57:06Z","receivedAt":"2010-11-21T15:57:06Z","isPatch":true,"sender":{"key":"paulius.zaleckas@gmail.com","avatar":null},"body":"This bug was introduced in 3f19450c426970b78b19c522a82df1a962da5761\nIt should report the commit stg stack is based on, but not the\nlast patch in stack.\n\nSigned-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>\n---\n\n stgit/commands/export.py |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/stgit/commands/export.py b/stgit/commands/export.py\nindex 4285612..a661a7d 100644\n--- a/stgit/commands/export.py\n+++ b/stgit/commands/export.py\n@@ -115,7 +115,7 @@ def func(parser, options, args):\n \n     # note the base commit for this series\n     if not options.stdout:\n-        base_commit = stack.patches.get(patches[0]).commit.sha1\n+        base_commit = stack.base.sha1\n         print >> series, '# This series applies on GIT commit %s' % base_commit\n \n     patch_no = 1;\n"},{"id":"156486","messageId":"AANLkTi=8-Y80CrrTYr0i1gcPP_SPxbwHiqB7LhgZF9GA@mail.gmail.com","threadId":"25800","inReplyTo":"20101121155706.16544.20984.stgit@localhost.localdomain","subject":"Re: [PATCH] StGit: export: fix base commit reporting in series file","fromName":"Catalin Marinas","fromEmail":"catalin.marinas@gmail.com","sentAt":"2010-11-24T16:57:48Z","receivedAt":"2010-11-24T16:57:48Z","isPatch":true,"sender":{"key":"catalin.marinas@gmail.com","avatar":null},"body":"On 21 November 2010 15:57, Paulius Zaleckas <paulius.zaleckas@gmail.com> wrote:\n> This bug was introduced in 3f19450c426970b78b19c522a82df1a962da5761\n> It should report the commit stg stack is based on, but not the\n> last patch in stack.\n>\n> Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>\n\nThanks, applied.\n\n-- \nCatalin\n"}]}