Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
patch: display the final dist-git commit to the user
Browse files Browse the repository at this point in the history
"rdopkg patch" prints the final dist-git commit to the user. Do the same
thing in our "patch" action.
  • Loading branch information
ktdreyer committed Jul 19, 2016
1 parent ff82b0f commit e64c611
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rhcephpkg/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ def _run(self):
'debian/rules', '-F', temp.name]
subprocess.check_call(cmd)

# Summarize this commit on STDOUT for the developer.
# (This matches the behavior of "rdopkg patch".)
cmd = ['git', '--no-pager', 'log', '--name-status', 'HEAD~..HEAD']
subprocess.check_call(cmd)

def get_rhbzs(self, patch):
bzs = re.findall(BZ_REGEX, patch.subject)
bzs.extend(re.findall(BZ_REGEX, patch.long_desc))
Expand Down

0 comments on commit e64c611

Please sign in to comment.