mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Logging the process of moving change to correct changelist during changes refresh.
This commit is contained in:
@@ -232,7 +232,7 @@ public class ChangeListWorker implements ChangeListsWriteOperations {
|
||||
}
|
||||
|
||||
public boolean addChangeToList(@NotNull final String name, final Change change, final VcsKey vcsKey) {
|
||||
LOG.debug("[addChangeToList] name: " + name + " change: " + ChangesUtil.getFilePath(change).getPath() + " vcs: " +
|
||||
LOG.info("[addChangeToList] name: " + name + " change: " + ChangesUtil.getFilePath(change).getPath() + " vcs: " +
|
||||
(vcsKey == null ? null : vcsKey.getName()));
|
||||
final LocalChangeList changeList = myMap.get(name);
|
||||
if (changeList != null) {
|
||||
@@ -243,16 +243,16 @@ public class ChangeListWorker implements ChangeListsWriteOperations {
|
||||
}
|
||||
|
||||
public void addChangeToCorrespondingList(final Change change, final VcsKey vcsKey) {
|
||||
final String path = LOG.isDebugEnabled() ? ChangesUtil.getFilePath(change).getPath() : "";
|
||||
LOG.debug("[addChangeToCorrespondingList] for change " + path + " type: " + change.getType() + " have before revision: " + (change.getBeforeRevision() != null));
|
||||
final String path = ChangesUtil.getFilePath(change).getPath();
|
||||
LOG.info("[addChangeToCorrespondingList] for change " + path + " type: " + change.getType() + " have before revision: " + (change.getBeforeRevision() != null));
|
||||
assert myDefault != null;
|
||||
for (LocalChangeList list : myMap.values()) {
|
||||
if (list.isDefault()) {
|
||||
LOG.debug("[addChangeToCorrespondingList] skip default list: " + list.getName() + " type: " + change.getType() + " have before revision: " + (change.getBeforeRevision() != null));
|
||||
LOG.info("[addChangeToCorrespondingList] skip default list: " + list.getName() + " type: " + change.getType() + " have before revision: " + (change.getBeforeRevision() != null));
|
||||
continue;
|
||||
}
|
||||
if (((LocalChangeListImpl) list).processChange(change)) {
|
||||
LOG.debug("[addChangeToCorrespondingList] matched: " + list.getName() + " type: " + change.getType() + " have before revision: " + (change.getBeforeRevision() != null));
|
||||
LOG.info("[addChangeToCorrespondingList] matched: " + list.getName() + " type: " + change.getType() + " have before revision: " + (change.getBeforeRevision() != null));
|
||||
myIdx.changeAdded(change, vcsKey);
|
||||
return;
|
||||
}
|
||||
|
||||
+5
-5
@@ -66,11 +66,11 @@ class UpdatingChangeListBuilder implements ChangelistBuilder {
|
||||
public void processChangeInList(final Change change, @Nullable final ChangeList changeList, final VcsKey vcsKey) {
|
||||
checkIfDisposed();
|
||||
|
||||
LOG.debug("[processChangeInList-1] entering, cl name: " + ((changeList == null) ? null: changeList.getName()) +
|
||||
LOG.info("[processChangeInList-1] entering, cl name: " + ((changeList == null) ? null: changeList.getName()) +
|
||||
" change: " + ChangesUtil.getFilePath(change).getPath());
|
||||
final String fileName = ChangesUtil.getFilePath(change).getName();
|
||||
if (FileTypeManager.getInstance().isFileIgnored(fileName)) {
|
||||
LOG.debug("[processChangeInList-1] file type ignored");
|
||||
LOG.info("[processChangeInList-1] file type ignored");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -78,14 +78,14 @@ class UpdatingChangeListBuilder implements ChangelistBuilder {
|
||||
public void run() {
|
||||
if (ChangeListManagerImpl.isUnder(change, myScope)) {
|
||||
if (changeList != null) {
|
||||
LOG.debug("[processChangeInList-1] to add change to cl");
|
||||
LOG.info("[processChangeInList-1] to add change to cl");
|
||||
myChangeListWorker.addChangeToList(changeList.getName(), change, vcsKey);
|
||||
} else {
|
||||
LOG.debug("[processChangeInList-1] to add to corresponding list");
|
||||
LOG.info("[processChangeInList-1] to add to corresponding list");
|
||||
myChangeListWorker.addChangeToCorrespondingList(change, vcsKey);
|
||||
}
|
||||
} else {
|
||||
LOG.debug("[processChangeInList-1] not under scope");
|
||||
LOG.info("[processChangeInList-1] not under scope");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user