Lines Matching full:downstream
1 """List downstream commits that are not upstream and are visible in the diff.
4 the downstream and usptream branches.
9 This will also exclude changes that were added then reverted downstream.
39 def __init__(self, working_dir, upstream, downstream):
42 self.downstream = downstream
49 '%s..%s' % (self.upstream, self.downstream),
61 def find_insertion_commits(upstream, downstream, working_dir):
66 downstream: Downstream branch to search for commits missing upstream.
79 downstream])
82 finder = CommitFinder(working_dir, upstream, downstream)
91 def find(upstream, downstream, working_dir):
92 """Finds downstream commits that are not upstream and are visible in the diff.
96 downstream: Downstream branch to search for commits missing upstream.
100 A set of downstream commits missing upstream.
105 '%s..%s' % (upstream, downstream)])
109 # If there are no downstream-only commits there's no point in
112 insertion_commits = find_insertion_commits(upstream, downstream,
115 # The commits that are only downstream and are visible in 'git blame' are the
116 # ones that insert lines in the diff between upstream and downstream.
133 'downstream',
134 help='Downstream branch to search for commits missing upstream.',
143 downstream = args.downstream
146 print('\n'.join(find(upstream, downstream, working_dir)))