浏览代码

patman: don't pick changes while processing patches

We already got all changes from git log output and the comment
to the ProcessLine function clearly states that 'patch' mode
is not for scanning tags.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
Ilya Yanok 12 年之前
父节点
当前提交
a8840cb2f0
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tools/patman/patchstream.py

+ 2 - 1
tools/patman/patchstream.py

@@ -214,7 +214,8 @@ class PatchStream:
                 self.in_change = 0
                 self.in_change = 0
                 out = self.ProcessLine(line)
                 out = self.ProcessLine(line)
             else:
             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
             self.skip_blank = False
 
 
         # Detect Series-xxx tags
         # Detect Series-xxx tags