def __str__(self):
return self.subject
- def AddChange(self, version, info):
+ def add_change(self, version, info):
"""Add a new change line to the change list for a version.
Args:
self.changes[version] = []
self.changes[version].append(info)
- def CheckTags(self):
+ def check_tags(self):
"""Create a list of subject tags in the commit
Subject tags look like this:
str = m.group(2)
return None
- def AddCc(self, cc_list):
+ def add_cc(self, cc_list):
"""Add a list of people to Cc when we send this patch.
Args:
"""
self.cc_list += cc_list
- def CheckDuplicateSignoff(self, signoff):
+ def check_duplicate_signoff(self, signoff):
"""Check a list of signoffs we have send for this patch
Args:
self.signoff_set.add(signoff)
return True
- def AddRtag(self, rtag_type, who):
+ def add_rtag(self, rtag_type, who):
"""Add a response tag to a commit
Args:
who (str): Person who gave that rtag, e.g.
'Fred Bloggs <fred@bloggs.org>'
"""
- self.commit.AddRtag(rtag_type, who)
+ self.commit.add_rtag(rtag_type, who)
def _close_commit(self):
"""Save the current commit into our commit list, and reset our state"""
elif self.in_change == 'Cover':
self.series.AddChange(self.change_version, None, change)
elif self.in_change == 'Commit':
- self.commit.AddChange(self.change_version, change)
+ self.commit.add_change(self.change_version, change)
self.change_lines = []
def _finalise_snippet(self):
who.find(os.getenv('USER') + '@') != -1):
self._add_warn("Ignoring '%s'" % line)
elif rtag_type == 'Patch-cc':
- self.commit.AddCc(who.split(','))
+ self.commit.add_cc(who.split(','))
else:
out = [line]
# Suppress duplicate signoffs
elif signoff_match:
if (self.is_log or not self.commit or
- self.commit.CheckDuplicateSignoff(signoff_match.group(1))):
+ self.commit.check_duplicate_signoff(signoff_match.group(1))):
out = [line]
# Well that means this is an ordinary line