(branch_name, fp)
| 424 | |
| 425 | self.commits = {} |
| 426 | def create_commits(branch_name, fp): |
| 427 | self.commits[branch_name] = [] |
| 428 | utils.append_to_file(fp, contents='contents {0}\n'.format(0)) |
| 429 | out = utils.stdout(gl.commit(m='ci 0 in {0}'.format(branch_name), inc=fp)) |
| 430 | self.commits[branch_name].append( |
| 431 | re.search(r'Commit Id: (\S*)', out, re.UNICODE).group(1)) |
| 432 | for i in range(1, self.COMMITS_NUMBER): |
| 433 | utils.append_to_file(fp, contents='contents {0}\n'.format(i)) |
| 434 | out = utils.stdout(gl.commit(m='ci {0} in {1}'.format(i, branch_name))) |
| 435 | self.commits[branch_name].append( |
| 436 | re.search(r'Commit Id: (\S*)', out, re.UNICODE).group(1)) |
| 437 | |
| 438 | gl.branch(c=self.OTHER) |
| 439 | create_commits('master', self.MASTER_FILE) |
nothing calls this directly
no outgoing calls
no test coverage detected