submodule subscriptions: be more verbose in debug log
Change-Id: I1046367139c45377b9e6b93c9d653ee23cddd556
This commit is contained in:
@@ -145,13 +145,16 @@ public class SubmoduleOp {
|
||||
ProjectConfig cfg = projectCache.get(project).getConfig();
|
||||
for (SubscribeSection s : projectStateFactory.create(cfg)
|
||||
.getSubscribeSections(branch)) {
|
||||
logDebug("Checking subscribe section " + s);
|
||||
Collection<Branch.NameKey> branches =
|
||||
getDestinationBranches(branch, s, orm);
|
||||
for (Branch.NameKey targetBranch : branches) {
|
||||
GitModules m = gitmodulesFactory.create(targetBranch, updateId, orm);
|
||||
m.load();
|
||||
for (SubmoduleSubscription ss : m.subscribedTo(branch)) {
|
||||
logDebug("Checking SubmoduleSubscription " + ss);
|
||||
if (projectCache.get(ss.getSubmodule().getParentKey()) != null) {
|
||||
logDebug("Adding SubmoduleSubscription " + ss);
|
||||
ret.add(ss);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user