Improve change reporting a bit
authorGuido Günther <agx@sigxcpu.org>
Fri, 17 Oct 2014 15:31:48 +0000 (17:31 +0200)
committerJun Wang <junbill.wang@samsung.com>
Tue, 26 Jan 2016 16:44:36 +0000 (00:44 +0800)
gbp/scripts/pq.py

index 38d2d35..af11291 100755 (executable)
@@ -182,9 +182,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: