Hi everyone,

I had this issue for some times with gbp-pq (what a hard command to
type…). For me, the problem is that the "branch...patch-queue/branch"
commit range is silly: gitrevisions(7) tells that it includes both
commits reachable from either branch, but not both. I don't know why
this was chosen, it doesn't correspond to what I thought this command
did. Incidentally, the "branch..patch-queue/branch" syntax seems to do
exactly what we want: start from the merge base, only walking along the
second branch.

I'm still not at ease with gbp-pq and not very good at Debian packaging,
so maybe this is wrong, but the attached patch may fix this problem.

Regards,
-- 
Benjamin Cama <[email protected]>
>From ee025290021367f8b9cbff6bff2b88c56d401e45 Mon Sep 17 00:00:00 2001
From: Benjamin Cama <[email protected]>
Date: Fri, 23 Aug 2013 19:03:12 +0200
Subject: [PATCH] Do not include patches from packaging branch when exporting the pq

---
 gbp/git/repository.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 502a391..69f7e8a 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -1450,7 +1450,7 @@ class GitRepository(object):
         options = GitArgs('-N', '-k',
                           '-o', output_dir)
         options.add_cond(not signature, '--no-signature')
-        options.add('%s...%s' % (start, end))
+        options.add('%s..%s' % (start, end))
         options.add_cond(thread, '--thread=%s' % thread, '--no-thread')
 
         output, ret = self._git_getoutput('format-patch', options.args)
-- 
1.7.2.5

Reply via email to