summaryrefslogtreecommitdiff
path: root/gbp/scripts/pq.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-10-25 18:58:20 +0200
committerGuido Günther <agx@sigxcpu.org>2012-10-25 18:59:22 +0200
commit4970b42ef8e1fb89787434c37e6659cd40c087e7 (patch)
tree8f553501ab0487811ed00ad27bceee74f0b554d1 /gbp/scripts/pq.py
parent30c1821791cce910f250b40b1949084b8b5012e1 (diff)
downloadgit-buildpackage-4970b42ef8e1fb89787434c37e6659cd40c087e7.tar.gz
git-buildpackage-4970b42ef8e1fb89787434c37e6659cd40c087e7.tar.bz2
git-buildpackage-4970b42ef8e1fb89787434c37e6659cd40c087e7.zip
Print number of tries left
Diffstat (limited to 'gbp/scripts/pq.py')
-rwxr-xr-xgbp/scripts/pq.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gbp/scripts/pq.py b/gbp/scripts/pq.py
index 0118c27a..fbd59a79 100755
--- a/gbp/scripts/pq.py
+++ b/gbp/scripts/pq.py
@@ -131,7 +131,11 @@ def import_quilt_patches(repo, branch, series, tries, force):
tmpdir, series = safe_patches(series)
queue = PatchSeries.read_series_file(series)
+
+ i = len(commits)
for commit in commits:
+ if len(commits):
+ gbp.log.info("%d tries left" % i)
try:
gbp.log.info("Trying to apply patches at '%s'" % commit)
repo.create_branch(pq_branch, commit)
@@ -150,6 +154,7 @@ def import_quilt_patches(repo, branch, series, tries, force):
else:
# All patches applied successfully
break
+ i-=1
else:
raise GbpError("Couldn't apply patches")