u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] patman: Suppress duplicate signoffs only for real patches
@ 2014-05-13 18:14 Simon Glass
  2014-05-15  7:29 ` Michal Simek
  2014-05-16  9:49 ` Andreas Bießmann
  0 siblings, 2 replies; 3+ messages in thread
From: Simon Glass @ 2014-05-13 18:14 UTC (permalink / raw)
  To: u-boot

There is an unfortunate bug in the signoff suppression logic. The first
pass is performed with 'git log', and all signoffs are added to the
supression set, such that the second time (when processing the real
patches) we always suppress the signoffs.

Correct this by only suppressing signoffs in the second pass.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 tools/patman/patchstream.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py
index 9f5682c..3228719 100644
--- a/tools/patman/patchstream.py
+++ b/tools/patman/patchstream.py
@@ -275,7 +275,8 @@ class PatchStream:
 
         # Suppress duplicate signoffs
         elif signoff_match:
-            if self.commit.CheckDuplicateSignoff(signoff_match.group(1)):
+            if (self.is_log or
+                self.commit.CheckDuplicateSignoff(signoff_match.group(1))):
                 out = [line]
 
         # Well that means this is an ordinary line
-- 
1.9.1.423.g4596e3a

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] patman: Suppress duplicate signoffs only for real patches
  2014-05-13 18:14 [U-Boot] [PATCH] patman: Suppress duplicate signoffs only for real patches Simon Glass
@ 2014-05-15  7:29 ` Michal Simek
  2014-05-16  9:49 ` Andreas Bießmann
  1 sibling, 0 replies; 3+ messages in thread
From: Michal Simek @ 2014-05-15  7:29 UTC (permalink / raw)
  To: u-boot

On 05/13/2014 08:14 PM, Simon Glass wrote:
> There is an unfortunate bug in the signoff suppression logic. The first
> pass is performed with 'git log', and all signoffs are added to the
> supression set, such that the second time (when processing the real
> patches) we always suppress the signoffs.
> 
> Correct this by only suppressing signoffs in the second pass.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

I have seen the same problem as Masahiro.

Tested-by: Michal Simek <monstr@monstr.eu>

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140515/9d36a571/attachment.pgp>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] patman: Suppress duplicate signoffs only for real patches
  2014-05-13 18:14 [U-Boot] [PATCH] patman: Suppress duplicate signoffs only for real patches Simon Glass
  2014-05-15  7:29 ` Michal Simek
@ 2014-05-16  9:49 ` Andreas Bießmann
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Bießmann @ 2014-05-16  9:49 UTC (permalink / raw)
  To: u-boot

On 05/13/2014 08:14 PM, Simon Glass wrote:
> There is an unfortunate bug in the signoff suppression logic. The first
> pass is performed with 'git log', and all signoffs are added to the
> supression set, such that the second time (when processing the real
> patches) we always suppress the signoffs.
> 
> Correct this by only suppressing signoffs in the second pass.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Tested-by: Andreas Bie?mann <andreas.devel@googlemail.com>

should be applied ASAP. Patman is a really useful tool but unusable
without this patch.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-16  9:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-13 18:14 [U-Boot] [PATCH] patman: Suppress duplicate signoffs only for real patches Simon Glass
2014-05-15  7:29 ` Michal Simek
2014-05-16  9:49 ` Andreas Bießmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).