From: Guido Günther Date: Fri, 17 Oct 2014 15:31:48 +0000 (+0200) Subject: Improve change reporting a bit X-Git-Tag: debian/0.6.22~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22a698736486f1097e034ae9c5c432f39fdaa239;p=tools%2Fgit-buildpackage.git Improve change reporting a bit --- diff --git a/gbp/scripts/pq.py b/gbp/scripts/pq.py index e78f92c..194145e 100755 --- a/gbp/scripts/pq.py +++ b/gbp/scripts/pq.py @@ -159,9 +159,11 @@ def export_patches(repo, branch, options): if options.commit: added, removed = commit_patches(repo, branch, patches, options) if added: - gbp.log.info("Added %s" % ', '.join(added)) + what = 'patches' if len(added) > 1 else 'patch' + gbp.log.info("Added %s %s to patch series" % (what, ', '.join(added))) if removed: - gbp.log.info("Removed %s" % ', '.join(removed)) + what = 'patches' if len(removed) > 1 else 'patch' + gbp.log.info("Removed %s %s from patch series" % (what, ', '.join(removed))) else: GitCommand('status')(['--', PATCH_DIR]) else: