public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/3] patman: A fix and some new tags
@ 2024-04-19  2:36 Sean Anderson
  2024-04-19  2:36 ` [PATCH 1/3] patman: Fix tests if add_maintainers is set to False Sean Anderson
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Sean Anderson @ 2024-04-19  2:36 UTC (permalink / raw)
  To: u-boot, Simon Glass; +Cc: Sean Anderson, Douglas Anderson

This series has a fix along with a couple of convenient tags.


Sean Anderson (3):
  patman: Fix tests if add_maintainers is set to False
  patman: Add Commit-cc as an alias for Patch-cc
  patman: Add a tag for when a patch gets added to a series

 tools/patman/func_test.py                         | 10 ++++++++--
 tools/patman/patchstream.py                       |  7 +++++++
 tools/patman/patman.rst                           | 15 ++++++++++++++-
 ...cast-for-sandbox-in-fdtdec_setup_mem_siz.patch |  2 ++
 tools/patman/test/test01.txt                      |  2 ++
 5 files changed, 33 insertions(+), 3 deletions(-)

-- 
2.37.1


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

* [PATCH 1/3] patman: Fix tests if add_maintainers is set to False
  2024-04-19  2:36 [PATCH 0/3] patman: A fix and some new tags Sean Anderson
@ 2024-04-19  2:36 ` Sean Anderson
  2024-07-01 13:57   ` Simon Glass
  2024-04-19  2:36 ` [PATCH 2/3] patman: Add Commit-cc as an alias for Patch-cc Sean Anderson
  2024-04-19  2:36 ` [PATCH 3/3] patman: Add a tag for when a patch gets added to a series Sean Anderson
  2 siblings, 1 reply; 12+ messages in thread
From: Sean Anderson @ 2024-04-19  2:36 UTC (permalink / raw)
  To: u-boot, Simon Glass; +Cc: Sean Anderson

If add_maintainers is set to False in the user's ~/.patman config, it will
cause the custom_get_maintainer_script to fail since that test expects
maintainers to be added. Set add_maintainer to True in the .patman config
to prevent this.

Fixes: 8c042fb7f9f ("patman: add '--get-maintainer-script' argument")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
---

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

diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py
index e3918497cf4..9c016fb5e9a 100644
--- a/tools/patman/func_test.py
+++ b/tools/patman/func_test.py
@@ -540,7 +540,8 @@ complicated as possible''')
             with open('.patman', 'w', buffering=1) as f:
                 f.write('[settings]\n'
                         'get_maintainer_script: dummy-script.sh\n'
-                        'check_patch: False\n')
+                        'check_patch: False\n'
+                        'add_maintainers: True\n')
             with open('dummy-script.sh', 'w', buffering=1) as f:
                 f.write('#!/usr/bin/env python\n'
                         'print("hello@there.com")\n')
-- 
2.37.1


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

* [PATCH 2/3] patman: Add Commit-cc as an alias for Patch-cc
  2024-04-19  2:36 [PATCH 0/3] patman: A fix and some new tags Sean Anderson
  2024-04-19  2:36 ` [PATCH 1/3] patman: Fix tests if add_maintainers is set to False Sean Anderson
@ 2024-04-19  2:36 ` Sean Anderson
  2024-07-01 13:57   ` Simon Glass
  2024-04-19  2:36 ` [PATCH 3/3] patman: Add a tag for when a patch gets added to a series Sean Anderson
  2 siblings, 1 reply; 12+ messages in thread
From: Sean Anderson @ 2024-04-19  2:36 UTC (permalink / raw)
  To: u-boot, Simon Glass; +Cc: Sean Anderson

Most tags referring to commits (or patches) are named Commit-something. The
exception is Patch-cc. Add a Commit-cc alias so we can use whichever one is
convenient.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
---

 tools/patman/func_test.py                                    | 5 ++++-
 tools/patman/patchstream.py                                  | 2 ++
 tools/patman/patman.rst                                      | 2 +-
 ...dt-Correct-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch | 1 +
 tools/patman/test/test01.txt                                 | 1 +
 5 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py
index 9c016fb5e9a..3b4c9448882 100644
--- a/tools/patman/func_test.py
+++ b/tools/patman/func_test.py
@@ -211,6 +211,7 @@ class TestFunctional(unittest.TestCase):
             'u-boot': ['u-boot@lists.denx.de'],
             'simon': [self.leb],
             'fred': [self.fred],
+            'joe': [self.joe],
         }
 
         text = self._get_text('test01.txt')
@@ -259,6 +260,7 @@ class TestFunctional(unittest.TestCase):
         self.assertEqual('Postfix:\t  some-branch', next(lines))
         self.assertEqual('Cover: 4 lines', next(lines))
         self.assertEqual('      Cc:  %s' % self.fred, next(lines))
+        self.assertEqual('      Cc:  %s' % self.joe, next(lines))
         self.assertEqual('      Cc:  %s' % self.leb,
                          next(lines))
         self.assertEqual('      Cc:  %s' % mel, next(lines))
@@ -272,7 +274,8 @@ class TestFunctional(unittest.TestCase):
 
         self.assertEqual(('%s %s\0%s' % (args[0], rick, stefan)), cc_lines[0])
         self.assertEqual(
-            '%s %s\0%s\0%s\0%s' % (args[1], self.fred, self.leb, rick, stefan),
+            '%s %s\0%s\0%s\0%s\0%s' % (args[1], self.fred, self.joe, self.leb,
+                                       rick, stefan),
             cc_lines[1])
 
         expected = '''
diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py
index e2e2a83e677..ec1ca874fb2 100644
--- a/tools/patman/patchstream.py
+++ b/tools/patman/patchstream.py
@@ -475,6 +475,8 @@ class PatchStream:
             elif name == 'changes':
                 self.in_change = 'Commit'
                 self.change_version = self._parse_version(value, line)
+            elif name == 'cc':
+                self.commit.add_cc(value.split(','))
             else:
                 self._add_warn('Line %d: Ignoring Commit-%s' %
                                (self.linenum, name))
diff --git a/tools/patman/patman.rst b/tools/patman/patman.rst
index f4588c00fc1..9971fa8c0fd 100644
--- a/tools/patman/patman.rst
+++ b/tools/patman/patman.rst
@@ -350,7 +350,7 @@ Cover-changes: n
         - This line will only appear in the cover letter
         <blank line>
 
-Patch-cc: Their Name <email>
+Patch-cc / Commit-cc: Their Name <email>
     This copies a single patch to another email address. Note that the
     Cc: used by git send-email is ignored by patman, but will be
     interpreted by git send-email if you use it.
diff --git a/tools/patman/test/0002-fdt-Correct-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch b/tools/patman/test/0002-fdt-Correct-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch
index 56278a6ce9b..55a0d6756aa 100644
--- a/tools/patman/test/0002-fdt-Correct-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch
+++ b/tools/patman/test/0002-fdt-Correct-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch
@@ -21,6 +21,7 @@ Series-cc: Stefan Brüns <stefan.bruens@rwth-aachen.de>
 Cover-letter-cc: Lord Mëlchett <clergy@palace.gov>
 Series-version: 3
 Patch-cc: fred
+Commit-cc: joe
 Series-process-log: sort, uniq
 Series-changes: 4
 - Some changes
diff --git a/tools/patman/test/test01.txt b/tools/patman/test/test01.txt
index fc3066e50b4..271d9bf043f 100644
--- a/tools/patman/test/test01.txt
+++ b/tools/patman/test/test01.txt
@@ -49,6 +49,7 @@ Date:   Sat Apr 15 15:39:08 2017 -0600
     Cover-letter-cc: Lord Mëlchett <clergy@palace.gov>
     Series-version: 3
     Patch-cc: fred
+    Commit-cc: joe
     Series-process-log: sort, uniq
     Series-changes: 4
     - Some changes
-- 
2.37.1


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

* [PATCH 3/3] patman: Add a tag for when a patch gets added to a series
  2024-04-19  2:36 [PATCH 0/3] patman: A fix and some new tags Sean Anderson
  2024-04-19  2:36 ` [PATCH 1/3] patman: Fix tests if add_maintainers is set to False Sean Anderson
  2024-04-19  2:36 ` [PATCH 2/3] patman: Add Commit-cc as an alias for Patch-cc Sean Anderson
@ 2024-04-19  2:36 ` Sean Anderson
  2024-04-29 16:49   ` Doug Anderson
  2024-12-14  0:51   ` Doug Anderson
  2 siblings, 2 replies; 12+ messages in thread
From: Sean Anderson @ 2024-04-19  2:36 UTC (permalink / raw)
  To: u-boot, Simon Glass; +Cc: Sean Anderson, Douglas Anderson

When a patch is added to a series after the initial version, there are no
changes to note except that it is new. This is typically done to suppress
the "(no changes in vN)" message. It's also nice to add a change to the
cover letter so reviewers know there is an additional patch. Add a tag to
automate this process a bit.

There are two nits with the current approach:

- It favors '-' as a bullet point, but some people may prefer '*' (or
  something else)
- Tags (e.g. 'patman: ' in 'patman: foo bar') are not stripped. They are
  probably just noise in most series, but they may be useful for treewide
  series to distinguish 'gpio: frobnicate' from 'reset: frobnicate', so
  I've left them in.

Suggestions for the above appreciated.

Suggested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Sean Anderson <seanga2@gmail.com>
---

 tools/patman/func_test.py                           |  2 ++
 tools/patman/patchstream.py                         |  5 +++++
 tools/patman/patman.rst                             | 13 +++++++++++++
 ...t-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch |  1 +
 tools/patman/test/test01.txt                        |  1 +
 5 files changed, 22 insertions(+)

diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py
index 3b4c9448882..af6c025a441 100644
--- a/tools/patman/func_test.py
+++ b/tools/patman/func_test.py
@@ -293,6 +293,7 @@ Changes in v4:
   change
 - Some changes
 - Some notes for the cover letter
+- fdt: Correct cast for sandbox in fdtdec_setup_mem_size_base()
 
 Simon Glass (2):
   pci: Correct cast for sandbox
@@ -342,6 +343,7 @@ Changes in v4:
 - Multi
   line
   change
+- New
 - Some changes
 
 Changes in v2:
diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py
index ec1ca874fb2..a09ae9c7371 100644
--- a/tools/patman/patchstream.py
+++ b/tools/patman/patchstream.py
@@ -477,6 +477,11 @@ class PatchStream:
                 self.change_version = self._parse_version(value, line)
             elif name == 'cc':
                 self.commit.add_cc(value.split(','))
+            elif name == 'added-in':
+                version = self._parse_version(value, line)
+                self.commit.add_change(version, '- New')
+                self.series.AddChange(version, None, '- %s' %
+                                      self.commit.subject)
             else:
                 self._add_warn('Line %d: Ignoring Commit-%s' %
                                (self.linenum, name))
diff --git a/tools/patman/patman.rst b/tools/patman/patman.rst
index 9971fa8c0fd..63b95a6b161 100644
--- a/tools/patman/patman.rst
+++ b/tools/patman/patman.rst
@@ -350,6 +350,19 @@ Cover-changes: n
         - This line will only appear in the cover letter
         <blank line>
 
+Commit-added-in: n
+    Add a change noting the version this commit was added in. This is
+    equivalent to::
+
+        Commit-changes: n
+        - New
+
+        Cover-changes: n
+        - <commit subject>
+
+    It is a convenient shorthand for suppressing the '(no changes in vN)'
+    message.
+
 Patch-cc / Commit-cc: Their Name <email>
     This copies a single patch to another email address. Note that the
     Cc: used by git send-email is ignored by patman, but will be
diff --git a/tools/patman/test/0002-fdt-Correct-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch b/tools/patman/test/0002-fdt-Correct-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch
index 55a0d6756aa..48ea1793b47 100644
--- a/tools/patman/test/0002-fdt-Correct-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch
+++ b/tools/patman/test/0002-fdt-Correct-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch
@@ -23,6 +23,7 @@ Series-version: 3
 Patch-cc: fred
 Commit-cc: joe
 Series-process-log: sort, uniq
+Commit-added-in: 4
 Series-changes: 4
 - Some changes
 - Multi
diff --git a/tools/patman/test/test01.txt b/tools/patman/test/test01.txt
index 271d9bf043f..b2d73c5972c 100644
--- a/tools/patman/test/test01.txt
+++ b/tools/patman/test/test01.txt
@@ -51,6 +51,7 @@ Date:   Sat Apr 15 15:39:08 2017 -0600
     Patch-cc: fred
     Commit-cc: joe
     Series-process-log: sort, uniq
+    Commit-added-in: 4
     Series-changes: 4
     - Some changes
     - Multi
-- 
2.37.1


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

* Re: [PATCH 3/3] patman: Add a tag for when a patch gets added to a series
  2024-04-19  2:36 ` [PATCH 3/3] patman: Add a tag for when a patch gets added to a series Sean Anderson
@ 2024-04-29 16:49   ` Doug Anderson
  2024-07-01 13:57     ` Simon Glass
  2024-12-14  0:51   ` Doug Anderson
  1 sibling, 1 reply; 12+ messages in thread
From: Doug Anderson @ 2024-04-29 16:49 UTC (permalink / raw)
  To: Sean Anderson; +Cc: u-boot, Simon Glass

Hi,

On Thu, Apr 18, 2024 at 7:36 PM Sean Anderson <seanga2@gmail.com> wrote:
>
> When a patch is added to a series after the initial version, there are no
> changes to note except that it is new. This is typically done to suppress
> the "(no changes in vN)" message. It's also nice to add a change to the
> cover letter so reviewers know there is an additional patch. Add a tag to
> automate this process a bit.
>
> There are two nits with the current approach:
>
> - It favors '-' as a bullet point, but some people may prefer '*' (or
>   something else)
> - Tags (e.g. 'patman: ' in 'patman: foo bar') are not stripped. They are
>   probably just noise in most series, but they may be useful for treewide
>   series to distinguish 'gpio: frobnicate' from 'reset: frobnicate', so
>   I've left them in.
>
> Suggestions for the above appreciated.
>
> Suggested-by: Douglas Anderson <dianders@chromium.org>
> Signed-off-by: Sean Anderson <seanga2@gmail.com>
> ---
>
>  tools/patman/func_test.py                           |  2 ++
>  tools/patman/patchstream.py                         |  5 +++++
>  tools/patman/patman.rst                             | 13 +++++++++++++
>  ...t-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch |  1 +
>  tools/patman/test/test01.txt                        |  1 +
>  5 files changed, 22 insertions(+)

I love it, thanks!

Reviewed-by: Douglas Anderson <dianders@chromium.org>

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

* Re: [PATCH 1/3] patman: Fix tests if add_maintainers is set to False
  2024-04-19  2:36 ` [PATCH 1/3] patman: Fix tests if add_maintainers is set to False Sean Anderson
@ 2024-07-01 13:57   ` Simon Glass
  2024-07-15 13:31     ` Simon Glass
  0 siblings, 1 reply; 12+ messages in thread
From: Simon Glass @ 2024-07-01 13:57 UTC (permalink / raw)
  To: Sean Anderson; +Cc: u-boot

On Fri, 19 Apr 2024 at 03:36, Sean Anderson <seanga2@gmail.com> wrote:
>
> If add_maintainers is set to False in the user's ~/.patman config, it will
> cause the custom_get_maintainer_script to fail since that test expects
> maintainers to be added. Set add_maintainer to True in the .patman config
> to prevent this.
>
> Fixes: 8c042fb7f9f ("patman: add '--get-maintainer-script' argument")
> Signed-off-by: Sean Anderson <seanga2@gmail.com>
> ---
>
>  tools/patman/func_test.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

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

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

* Re: [PATCH 2/3] patman: Add Commit-cc as an alias for Patch-cc
  2024-04-19  2:36 ` [PATCH 2/3] patman: Add Commit-cc as an alias for Patch-cc Sean Anderson
@ 2024-07-01 13:57   ` Simon Glass
  2024-07-15 13:31     ` Simon Glass
  0 siblings, 1 reply; 12+ messages in thread
From: Simon Glass @ 2024-07-01 13:57 UTC (permalink / raw)
  To: Sean Anderson; +Cc: u-boot

On Fri, 19 Apr 2024 at 03:36, Sean Anderson <seanga2@gmail.com> wrote:
>
> Most tags referring to commits (or patches) are named Commit-something. The
> exception is Patch-cc. Add a Commit-cc alias so we can use whichever one is
> convenient.
>
> Signed-off-by: Sean Anderson <seanga2@gmail.com>
> ---
>
>  tools/patman/func_test.py                                    | 5 ++++-
>  tools/patman/patchstream.py                                  | 2 ++
>  tools/patman/patman.rst                                      | 2 +-
>  ...dt-Correct-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch | 1 +
>  tools/patman/test/test01.txt                                 | 1 +
>  5 files changed, 9 insertions(+), 2 deletions(-)

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

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

* Re: [PATCH 3/3] patman: Add a tag for when a patch gets added to a series
  2024-04-29 16:49   ` Doug Anderson
@ 2024-07-01 13:57     ` Simon Glass
  2024-07-15 13:31       ` Simon Glass
  0 siblings, 1 reply; 12+ messages in thread
From: Simon Glass @ 2024-07-01 13:57 UTC (permalink / raw)
  To: Doug Anderson; +Cc: Sean Anderson, u-boot

On Mon, 29 Apr 2024 at 17:49, Doug Anderson <dianders@chromium.org> wrote:
>
> Hi,
>
> On Thu, Apr 18, 2024 at 7:36 PM Sean Anderson <seanga2@gmail.com> wrote:
> >
> > When a patch is added to a series after the initial version, there are no
> > changes to note except that it is new. This is typically done to suppress
> > the "(no changes in vN)" message. It's also nice to add a change to the
> > cover letter so reviewers know there is an additional patch. Add a tag to
> > automate this process a bit.
> >
> > There are two nits with the current approach:
> >
> > - It favors '-' as a bullet point, but some people may prefer '*' (or
> >   something else)
> > - Tags (e.g. 'patman: ' in 'patman: foo bar') are not stripped. They are
> >   probably just noise in most series, but they may be useful for treewide
> >   series to distinguish 'gpio: frobnicate' from 'reset: frobnicate', so
> >   I've left them in.
> >
> > Suggestions for the above appreciated.
> >
> > Suggested-by: Douglas Anderson <dianders@chromium.org>
> > Signed-off-by: Sean Anderson <seanga2@gmail.com>
> > ---
> >
> >  tools/patman/func_test.py                           |  2 ++
> >  tools/patman/patchstream.py                         |  5 +++++
> >  tools/patman/patman.rst                             | 13 +++++++++++++
> >  ...t-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch |  1 +
> >  tools/patman/test/test01.txt                        |  1 +
> >  5 files changed, 22 insertions(+)
>
> I love it, thanks!
>
> Reviewed-by: Douglas Anderson <dianders@chromium.org>

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

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

* Re: [PATCH 1/3] patman: Fix tests if add_maintainers is set to False
  2024-07-01 13:57   ` Simon Glass
@ 2024-07-15 13:31     ` Simon Glass
  0 siblings, 0 replies; 12+ messages in thread
From: Simon Glass @ 2024-07-15 13:31 UTC (permalink / raw)
  To: Simon Glass; +Cc: u-boot, Sean Anderson

On Fri, 19 Apr 2024 at 03:36, Sean Anderson <seanga2@gmail.com> wrote:
>
> If add_maintainers is set to False in the user's ~/.patman config, it will
> cause the custom_get_maintainer_script to fail since that test expects
> maintainers to be added. Set add_maintainer to True in the .patman config
> to prevent this.
>
> Fixes: 8c042fb7f9f ("patman: add '--get-maintainer-script' argument")
> Signed-off-by: Sean Anderson <seanga2@gmail.com>
> ---
>
>  tools/patman/func_test.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

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

Applied to u-boot-dm, thanks!

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

* Re: [PATCH 3/3] patman: Add a tag for when a patch gets added to a series
  2024-07-01 13:57     ` Simon Glass
@ 2024-07-15 13:31       ` Simon Glass
  0 siblings, 0 replies; 12+ messages in thread
From: Simon Glass @ 2024-07-15 13:31 UTC (permalink / raw)
  To: Simon Glass; +Cc: Sean Anderson, u-boot, Doug Anderson

On Mon, 29 Apr 2024 at 17:49, Doug Anderson <dianders@chromium.org> wrote:
>
> Hi,
>
> On Thu, Apr 18, 2024 at 7:36 PM Sean Anderson <seanga2@gmail.com> wrote:
> >
> > When a patch is added to a series after the initial version, there are no
> > changes to note except that it is new. This is typically done to suppress
> > the "(no changes in vN)" message. It's also nice to add a change to the
> > cover letter so reviewers know there is an additional patch. Add a tag to
> > automate this process a bit.
> >
> > There are two nits with the current approach:
> >
> > - It favors '-' as a bullet point, but some people may prefer '*' (or
> >   something else)
> > - Tags (e.g. 'patman: ' in 'patman: foo bar') are not stripped. They are
> >   probably just noise in most series, but they may be useful for treewide
> >   series to distinguish 'gpio: frobnicate' from 'reset: frobnicate', so
> >   I've left them in.
> >
> > Suggestions for the above appreciated.
> >
> > Suggested-by: Douglas Anderson <dianders@chromium.org>
> > Signed-off-by: Sean Anderson <seanga2@gmail.com>
> > ---
> >
> >  tools/patman/func_test.py                           |  2 ++
> >  tools/patman/patchstream.py                         |  5 +++++
> >  tools/patman/patman.rst                             | 13 +++++++++++++
> >  ...t-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch |  1 +
> >  tools/patman/test/test01.txt                        |  1 +
> >  5 files changed, 22 insertions(+)
>
> I love it, thanks!
>
> Reviewed-by: Douglas Anderson <dianders@chromium.org>

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

Applied to u-boot-dm, thanks!

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

* Re: [PATCH 2/3] patman: Add Commit-cc as an alias for Patch-cc
  2024-07-01 13:57   ` Simon Glass
@ 2024-07-15 13:31     ` Simon Glass
  0 siblings, 0 replies; 12+ messages in thread
From: Simon Glass @ 2024-07-15 13:31 UTC (permalink / raw)
  To: Simon Glass; +Cc: u-boot, Sean Anderson

On Fri, 19 Apr 2024 at 03:36, Sean Anderson <seanga2@gmail.com> wrote:
>
> Most tags referring to commits (or patches) are named Commit-something. The
> exception is Patch-cc. Add a Commit-cc alias so we can use whichever one is
> convenient.
>
> Signed-off-by: Sean Anderson <seanga2@gmail.com>
> ---
>
>  tools/patman/func_test.py                                    | 5 ++++-
>  tools/patman/patchstream.py                                  | 2 ++
>  tools/patman/patman.rst                                      | 2 +-
>  ...dt-Correct-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch | 1 +
>  tools/patman/test/test01.txt                                 | 1 +
>  5 files changed, 9 insertions(+), 2 deletions(-)

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

Applied to u-boot-dm, thanks!

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

* Re: [PATCH 3/3] patman: Add a tag for when a patch gets added to a series
  2024-04-19  2:36 ` [PATCH 3/3] patman: Add a tag for when a patch gets added to a series Sean Anderson
  2024-04-29 16:49   ` Doug Anderson
@ 2024-12-14  0:51   ` Doug Anderson
  1 sibling, 0 replies; 12+ messages in thread
From: Doug Anderson @ 2024-12-14  0:51 UTC (permalink / raw)
  To: Sean Anderson; +Cc: u-boot, Simon Glass

Hi,

On Thu, Apr 18, 2024 at 7:36 PM Sean Anderson <seanga2@gmail.com> wrote:
>
> When a patch is added to a series after the initial version, there are no
> changes to note except that it is new. This is typically done to suppress
> the "(no changes in vN)" message. It's also nice to add a change to the
> cover letter so reviewers know there is an additional patch. Add a tag to
> automate this process a bit.
>
> There are two nits with the current approach:
>
> - It favors '-' as a bullet point, but some people may prefer '*' (or
>   something else)
> - Tags (e.g. 'patman: ' in 'patman: foo bar') are not stripped. They are
>   probably just noise in most series, but they may be useful for treewide
>   series to distinguish 'gpio: frobnicate' from 'reset: frobnicate', so
>   I've left them in.
>
> Suggestions for the above appreciated.
>
> Suggested-by: Douglas Anderson <dianders@chromium.org>
> Signed-off-by: Sean Anderson <seanga2@gmail.com>
> ---
>
>  tools/patman/func_test.py                           |  2 ++
>  tools/patman/patchstream.py                         |  5 +++++
>  tools/patman/patman.rst                             | 13 +++++++++++++
>  ...t-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch |  1 +
>  tools/patman/test/test01.txt                        |  1 +
>  5 files changed, 22 insertions(+)
>
> diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py
> index 3b4c9448882..af6c025a441 100644
> --- a/tools/patman/func_test.py
> +++ b/tools/patman/func_test.py
> @@ -293,6 +293,7 @@ Changes in v4:
>    change
>  - Some changes
>  - Some notes for the cover letter
> +- fdt: Correct cast for sandbox in fdtdec_setup_mem_size_base()
>
>  Simon Glass (2):
>    pci: Correct cast for sandbox
> @@ -342,6 +343,7 @@ Changes in v4:
>  - Multi
>    line
>    change
> +- New
>  - Some changes
>
>  Changes in v2:
> diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py
> index ec1ca874fb2..a09ae9c7371 100644
> --- a/tools/patman/patchstream.py
> +++ b/tools/patman/patchstream.py
> @@ -477,6 +477,11 @@ class PatchStream:
>                  self.change_version = self._parse_version(value, line)
>              elif name == 'cc':
>                  self.commit.add_cc(value.split(','))
> +            elif name == 'added-in':
> +                version = self._parse_version(value, line)
> +                self.commit.add_change(version, '- New')
> +                self.series.AddChange(version, None, '- %s' %
> +                                      self.commit.subject)

I won't have a chance to track this down right now, but I figured I'd
at least report it. Maybe it's already been looked at?

Once before when I used this I saw a case where using
"Commit-added-in" was doubling tags. AKA I end up seeing:

- New
- New

When I came back to try to look at it later I couldn't reproduce it.
I'm seeing it again now. I did the bare minimum to debug and I see
that the code in process_line() is being run twice for the same line.
The first seems to be in get_metadata_for_list() and the second in
process_stream().

I can do a quick-n-dirty fix for this, but presumably it would be
better to dig into the real root cause?


-Doug

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

end of thread, other threads:[~2024-12-14  0:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-19  2:36 [PATCH 0/3] patman: A fix and some new tags Sean Anderson
2024-04-19  2:36 ` [PATCH 1/3] patman: Fix tests if add_maintainers is set to False Sean Anderson
2024-07-01 13:57   ` Simon Glass
2024-07-15 13:31     ` Simon Glass
2024-04-19  2:36 ` [PATCH 2/3] patman: Add Commit-cc as an alias for Patch-cc Sean Anderson
2024-07-01 13:57   ` Simon Glass
2024-07-15 13:31     ` Simon Glass
2024-04-19  2:36 ` [PATCH 3/3] patman: Add a tag for when a patch gets added to a series Sean Anderson
2024-04-29 16:49   ` Doug Anderson
2024-07-01 13:57     ` Simon Glass
2024-07-15 13:31       ` Simon Glass
2024-12-14  0:51   ` Doug Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox