]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
patman: Support Series-name tag to name a series
authorSimon Glass <sjg@chromium.org>
Thu, 27 Sep 2012 15:06:02 +0000 (15:06 +0000)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:54:03 +0000 (11:54 -0700)
Sometimes it is possible to forget the name of the branch you used to
generate an upstream series. To assist with this, add an optional
patman does not use this.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/README
tools/patman/series.py

index 86ede78d35c8d3967970159c663ec0b7b8c6c940..dc3957ce6fd0442639576b59bdb8b0b9c302bae3 100644 (file)
@@ -133,6 +133,11 @@ Series-prefix: prefix
        Sets the subject prefix. Normally empty but it can be RFC for
        RFC patches, or RESEND if you are being ignored.
 
+Series-name: name
+       Sets the name of the series. You don't need to have a name, and
+       patman does not yet use it, but it is convenient to put the branch
+       name here to help you keep track of multiple upstreaming efforts.
+
 Cover-letter:
 This is the patch set title
 blah blah
index ce36b230a36a4d6031162a97439e3f6e23d0dd44..a283a2d1f4b2e0bdbb519f58c3a5af9bb87fb0e5 100644 (file)
@@ -25,7 +25,7 @@ import gitutil
 import terminal
 
 # Series-xxx tags that we understand
-valid_series = ['to', 'cc', 'version', 'changes', 'prefix', 'notes'];
+valid_series = ['to', 'cc', 'version', 'changes', 'prefix', 'notes', 'name'];
 
 class Series(dict):
     """Holds information about a patch series, including all tags.
@@ -76,7 +76,7 @@ class Series(dict):
             self[name] = value
         else:
             raise ValueError("In %s: line '%s': Unknown 'Series-%s': valid "
-                        "options are %s" % (self.commit.hash, line, name,
+                        "options are %s" % (commit.hash, line, name,
                             ', '.join(valid_series)))
 
     def AddCommit(self, commit):