diff options
| author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-09-30 23:49:17 +0200 | 
|---|---|---|
| committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-09-30 23:49:17 +0200 | 
| commit | 1c27059a2f7158a9c9a8778535b030935d75179d (patch) | |
| tree | bf577d5c9f0da21c5d57feed1091214e54c39dec /tools/patman/patchstream.py | |
| parent | 8f0732ac3dc3bdbbcada313dc4b4b38d5d2c376a (diff) | |
| parent | 4668a086bb0a769b741e3a4ffab85f1c41c7cdb8 (diff) | |
| download | olio-uboot-2014.01-1c27059a2f7158a9c9a8778535b030935d75179d.tar.xz olio-uboot-2014.01-1c27059a2f7158a9c9a8778535b030935d75179d.zip  | |
Merge remote-tracking branch 'u-boot/master'
Diffstat (limited to 'tools/patman/patchstream.py')
| -rw-r--r-- | tools/patman/patchstream.py | 22 | 
1 files changed, 10 insertions, 12 deletions
diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index be40af3ed..0503bac42 100644 --- a/tools/patman/patchstream.py +++ b/tools/patman/patchstream.py @@ -36,6 +36,9 @@ re_remove = re.compile('^BUG=|^TEST=|^Change-Id:|^Review URL:'  # Lines which are allowed after a TEST= line  re_allowed_after_test = re.compile('^Signed-off-by:') +# Signoffs +re_signoff = re.compile('^Signed-off-by:') +  # The start of the cover letter  re_cover = re.compile('^Cover-letter:') @@ -43,7 +46,7 @@ re_cover = re.compile('^Cover-letter:')  re_series = re.compile('^Series-(\w*): *(.*)')  # Commit tags that we want to collect and keep -re_tag = re.compile('^(Tested-by|Acked-by|Signed-off-by|Cc): (.*)') +re_tag = re.compile('^(Tested-by|Acked-by|Cc): (.*)')  # The start of a new commit in the git log  re_commit = re.compile('^commit (.*)') @@ -207,8 +210,12 @@ class PatchStream:              if is_blank:                  # Blank line ends this change list                  self.in_change = 0 +            elif line == '---' or re_signoff.match(line): +                self.in_change = 0 +                out = self.ProcessLine(line)              else: -                self.series.AddChange(self.in_change, self.commit, line) +                if self.is_log: +                    self.series.AddChange(self.in_change, self.commit, line)              self.skip_blank = False          # Detect Series-xxx tags @@ -234,15 +241,8 @@ class PatchStream:          # Detect tags in the commit message          elif tag_match: -            # Onlly allow a single signoff tag -            if tag_match.group(1) == 'Signed-off-by': -                if self.signoff: -                    self.warn.append('Patch has more than one Signed-off-by ' -                            'tag') -                self.signoff += [line] -              # Remove Tested-by self, since few will take much notice -            elif (tag_match.group(1) == 'Tested-by' and +            if (tag_match.group(1) == 'Tested-by' and                      tag_match.group(2).find(os.getenv('USER') + '@') != -1):                  self.warn.append("Ignoring %s" % line)              elif tag_match.group(1) == 'Cc': @@ -281,8 +281,6 @@ class PatchStream:                  # Output the tags (signeoff first), then change list                  out = [] -                if self.signoff: -                    out += self.signoff                  log = self.series.MakeChangeLog(self.commit)                  out += self.FormatTags(self.tags)                  out += [line] + log  |