Lines Matching full:rev
48 def extract_patch_for(cpython_repo, rev): argument
49 return git(f'format-patch -1 --no-stat --keep-subject --signoff --stdout {rev}',
53 def munge(rev, patch): argument
56 patch = patch.replace(sign_off, f'Backports: {rev}\n{sign_off}', 1)
68 def apply_patch(mock_repo, rev, patch): argument
69 patch_path = f'/tmp/{rev}.mock.patch'
81 def update_last_sync(mock_repo, rev): argument
83 target.write(rev+'\n')
84 print(f'update lastsync.txt to {rev}')
94 rev = rev_from_mock_patch(text)
96 print(f'skipping {rev}')
97 update_last_sync(mock_repo, rev)
98 …call(f'git commit -m "Backports: {rev}, skipped: {reason}" lastsync.txt', shell=True, cwd=mock_rep…
122 for rev in revs:
124 if has_been_backported(args.mock, rev):
125 update_last_sync(args.mock, rev)
128 patch = extract_patch_for(args.cpython, rev)
129 patch = munge(rev, patch)
130 apply_patch(args.mock, rev, patch)