mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: logging: log when changes are added/removed to the LocalChangeListImpl
This commit is contained in:
@@ -132,12 +132,14 @@ public class LocalChangeListImpl extends LocalChangeList {
|
||||
void addChange(Change change) {
|
||||
myReadChangesCache = null;
|
||||
myChanges.add(change);
|
||||
LOG.debug("List: " + myName + ". addChange: " + change);
|
||||
}
|
||||
|
||||
Change removeChange(Change change) {
|
||||
for (Change localChange : myChanges) {
|
||||
if (localChange.equals(change)) {
|
||||
myChanges.remove(localChange);
|
||||
LOG.debug("List: " + myName + ". removeChange: " + change);
|
||||
myReadChangesCache = null;
|
||||
return localChange;
|
||||
}
|
||||
@@ -156,6 +158,7 @@ public class LocalChangeListImpl extends LocalChangeList {
|
||||
|| isIgnoredChange(oldBoy, project)) {
|
||||
result.add(oldBoy);
|
||||
myChanges.remove(oldBoy);
|
||||
LOG.debug("List: " + myName + ". removed change during processing: " + oldBoy);
|
||||
myReadChangesCache = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user