aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-10-17 17:31:48 +0200
committerGuido Günther <agx@sigxcpu.org>2014-10-17 17:31:48 +0200
commit22a698736486f1097e034ae9c5c432f39fdaa239 (patch)
tree270d05947d649cd18483e267d182fe801eaad649
parent740e431fc4113be86df6bf87bb8a0a7167f583f3 (diff)
Improve change reporting a bit
-rwxr-xr-xgbp/scripts/pq.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gbp/scripts/pq.py b/gbp/scripts/pq.py
index e78f92cc..194145e8 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: