code
stringlengths
3
6.57k
returns (LF or CR)
self.AbsoluteLocalPath()
splitlines()
ChangedContents(self)
tuples (line number, line text)
self.GenerateScmDiff()
splitlines()
re.match(r'^@@ [0-9\,\+\-]+ \+([0-9]+)
int(m.groups(1)
line.startswith('+')
line.startswith('++')
self._cached_changed_contents.append((line_num, line[1:])
line.startswith('-')
__str__(self)
self.LocalPath()
GenerateScmDiff(self)
self._diff_cache.GetDiff(self.LocalPath()
GitAffectedFile(AffectedFile)
__init__(self, *args, **kwargs)
AffectedFile.__init__(self, *args, **kwargs)
IsTestableFile(self)
self.Action()
os.path.isfile(self.AbsoluteLocalPath()
Change(object)
value (or "tag")
os.path.abspath(local_root)
self.SetDescriptionText(description)
isinstance(f, (list, tuple)
len(f)
self._AFFECTED_FILES.DIFF_CACHE(self._upstream)
self._AFFECTED_FILES(path, action.strip()
Name(self)
DescriptionText(self)
FullDescriptionText(self)
SetDescriptionText(self, description)
text (including tags)
self._full_description.splitlines()
self.TAG_LINE_RE.match(line)
m.group('key')
m.group('value')
description_without_tags.append(line)
join(description_without_tags)
rstrip()
RepositoryRoot(self)
repository (checkout)
__getattr__(self, attr)
re.match(r"^[A-Z_]*$", attr)
AttributeError(self, attr)
self.tags.get(attr)
BugsFromDescription(self)
b.strip()
self.tags.get('BUG', '')
split(',')
b.strip()
git_footers.parse_footers(self._full_description)
get('Bug', [])
sorted(set(tags + footers)
ReviewersFromDescription(self)
r.strip()
self.tags.get('R', '')
split(',')
r.strip()
sorted(set(tags)
TBRsFromDescription(self)
r.strip()
self.tags.get('TBR', '')
split(',')
r.strip()
TODO(agable)
git_footers.parse_footers(self._full_description)
get('Tbr', [])
sorted(set(tags + footers)
TODO(agable)
BUG(self)
join(self.BugsFromDescription()
R(self)
join(self.ReviewersFromDescription()
TBR(self)
join(self.TBRsFromDescription()
AllFiles(self, root=None)
NotImplementedError()
AffectedFiles(self, include_deletes=True, file_filter=None)
AffectedFile(path, action)
AffectedFile(path, action)
filter(file_filter, self._affected_files)
filter(lambda x: x.Action()
AffectedTestableFiles(self, include_deletes=None)
warn("AffectedTeestableFiles(include_deletes=%s)
str(include_deletes)
filter(lambda x: x.IsTestableFile()
self.AffectedFiles(include_deletes=False)
AffectedTextFiles(self, include_deletes=None)
self.AffectedTestableFiles(include_deletes=include_deletes)
LocalPaths(self)
af.LocalPath()
self.AffectedFiles()
AbsoluteLocalPaths(self)
af.AbsoluteLocalPath()
self.AffectedFiles()
RightHandSideLines(self)