From: Markus Lehtonen Date: Wed, 2 Jul 2014 15:02:11 +0000 (+0300) Subject: Drop 'Commit' keyword from the submitrequest info X-Git-Tag: 0.3~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14de9b6ca66f689781ae1514c8c0e6a45520c05b;p=tools%2Frepa.git Drop 'Commit' keyword from the submitrequest info Commit is not used by anything and it doesn't make any sense for group submissions (which have multiple commmits, one per project). Change-Id: I3519017a68dec57e5319a5437379d1bc8cd75bb3 Signed-off-by: Markus Lehtonen --- diff --git a/repa/common.py b/repa/common.py index 0bd6ffd..d77ed70 100644 --- a/repa/common.py +++ b/repa/common.py @@ -87,18 +87,16 @@ def accept_or_reject(obs, submission, state, target, comment=''): # osc request accept [-m TEXT] ID print "submission %s" % str(name) - commit = meta.get('git_commit') or meta['git_tag'] submitter = meta.get('submitter') projects = '[' + ', '.join(meta['projects']) + ']' message = '' if submitter: message = "Submitter: %s\n" % submitter - message += "Comments: %s \nGit project: %s\nTag: %s\nCommit: %s" \ + message += "Comments: %s \nGit project: %s\nTag: %s" \ % (comment or "submission %s" % str(name), projects, - meta['git_tag'], - commit) + meta['git_tag']) # Create SR reqid = obs.create_sr(project, obs.get_source_packages(project),