tree = repo.write_tree()
msg = "%s\n\n%s" % (patch.subject, patch.long_desc)
if topic:
- msg += "\nGbp-Pq-Topic: %s" % topic
+ msg += "\nGbp-Pq: Topic %s" % topic
commit = repo.commit_tree(tree, msg, [repo.head], author=author)
repo.update_ref('HEAD', commit, msg="gbp-pq import %s" % patch.path)
pq.apply_and_commit_patch(self.repo, patch, None, topic='foobar')
info = self.repo.get_commit_info('HEAD')
- self.assertIn('Gbp-Pq-Topic: foobar', info['body'])
+ self.assertIn('Gbp-Pq: Topic foobar', info['body'])
@unittest.skipIf(not os.path.exists('/usr/bin/dpkg'), 'Dpkg not found')
def test_debian_missing_author(self):
# Add test file with topic:
msg = ("added foo\n\n"
- "Gbp-Pq-Topic: gbptest")
+ "Gbp-Pq: Topic gbptest")
self.add_file('foo', 'foo', msg)
# Write it out as patch and check it's existence