From 4970b42ef8e1fb89787434c37e6659cd40c087e7 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 25 Oct 2012 18:58:20 +0200 Subject: Print number of tries left --- gbp/scripts/pq.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gbp') diff --git a/gbp/scripts/pq.py b/gbp/scripts/pq.py index 0118c27..fbd59a7 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") -- cgit v1.2.3