Closed sbesson closed 9 years ago
Note I tried an alternative fix in https://github.com/openmicroscopy/snoopycrimecop/pull/195
@manics: which commit has the alternative?
@manics: I think both fixes are complementary. Your fix will prevent a branch with an inconsistent base to be merged. With the top-level filter, I also want to prevent inappropriate fetching, e.g. prevent a valid bioformats
remote to be fetched in an openmicroscopy
repository.
Agreed.
Without:
snoopys-sandbox$ scc merge --info master -D none -I manics/snoopys-sandbox-2:hello
2015-01-07 13:50:39,352 [ scc.merge] INFO Listing Pull Request(s) based on master
2015-01-07 13:50:39,353 [ scc.merge] INFO Including manics/snoopys-sandbox-2 Branches(s)/Pull Request(s) hello
2015-01-07 13:50:41,386 [ scc.merge] INFO Repository: manics/snoopys-sandbox
2015-01-07 13:50:41,386 [ scc.merge] INFO Candidate Branches:
2015-01-07 13:50:41,386 [ scc.merge] INFO # manics/snoopys-sandbox-2:hello
2015-01-07 13:50:41,386 [ scc.merge] INFO
2015-01-07 13:50:41,386 [ scc.merge] INFO Repository: openmicroscopy/snoopys-sandbox-2
2015-01-07 13:50:41,386 [ scc.merge] INFO Candidate Branches:
2015-01-07 13:50:41,386 [ scc.merge] INFO # manics:hello
2015-01-07 13:50:41,386 [ scc.merge] INFO
With:
snoopys-sandbox$ scc merge --info master -D none -I manics/snoopys-sandbox-2:hello
2015-01-07 13:52:02,087 [ scc.merge] INFO Listing Pull Request(s) based on master
2015-01-07 13:52:02,087 [ scc.merge] INFO Including manics/snoopys-sandbox-2 Branches(s)/Pull Request(s) hello
2015-01-07 13:52:04,014 [ scc.merge] INFO Repository: manics/snoopys-sandbox
2015-01-07 13:52:04,015 [ scc.merge] INFO
2015-01-07 13:52:04,015 [ scc.merge] INFO Repository: openmicroscopy/snoopys-sandbox-2
2015-01-07 13:52:04,015 [ scc.merge] INFO Candidate Branches:
2015-01-07 13:52:04,015 [ scc.merge] INFO # manics:hello
2015-01-07 13:52:04,015 [ scc.merge] INFO
Good to merge.
Closes #194
Recent changes added support for mismatching repository names. With this commit, submodule tracking branches are now excluded from the top-level repository
find_candidate_branches()
call and only submodule branches are considered in submodule repositories.Tested with
openmicroscopy.git
and the following commandThe
test2
,test3
branches and the PR3295
should be candidates for merging in the top-level repository while thetest
andtest4
branches should only be candidates branches for the appropriate submodule./cc @manics