private void markIgnored(Set<FilePath> dirtyFiles, ChangelistBuilder builder) { for (FilePath dirtyFile : dirtyFiles) { if (dirtyFile.getVirtualFile() == null || !dirtyFile.getVirtualFile().exists()) { if (LOG.isDebugEnabled()) { LOG.debug("Marking " + dirtyFile + " as locally deleted"); } builder.processLocallyDeletedFile(dirtyFile); } else { if (LOG.isDebugEnabled()) { LOG.debug("Marking " + dirtyFile + " as not versioned"); } // TODO include the IgnoreFileSet // TODO if these files aren't in P4, then they are locally edited but not // marked so by the server. In that case, they are Unversioned. If they // are in Perforce, then they are locally edited. // TODO unversioned files should be susceptible to the P4IGNORE settings. builder.processUnversionedFile(dirtyFile.getVirtualFile()); } } }
LOG.debug("Marking " + filePath + " as locally deleted"); builder.processLocallyDeletedFile(filePath); } else if (UserProjectPreferences.getAutoCheckoutModifiedFiles(project)) { if (LOG.isDebugEnabled()) { builder.processModifiedWithoutCheckout(filePath.getVirtualFile()); } else { if (LOG.isDebugEnabled()) { LOG.debug("Marking " + filePath + " as modified without checkout"); builder.processModifiedWithoutCheckout(filePath.getVirtualFile());
LOG.debug("Moving file " + vf + " off of 'before' IDE change list " + before); builder.removeRegisteredChangeFor(change.getBeforeRevision().getFile()); LOG.debug("Moving file " + vf + " off of 'after' IDE change list " + after); builder.removeRegisteredChangeFor(change.getAfterRevision().getFile()); builder.processChangeInList(change, localChangeList, P4Vcs.getKey());
LOG.debug("Mapped changelists: " + changes.getLinkedIdeChanges()); builder.processModifiedWithoutCheckout(file.getFilePath().getVirtualFile()); return false; } else if (ChangeListManager.getInstance(project).getChangeList(localChangeList.getId()) == null) { builder.processModifiedWithoutCheckout(file.getFilePath().getVirtualFile()); return false; } else { InternalErrorMessage.send(project).cacheLockTimeoutError(new ErrorEvent<>( new VcsInterruptedException("Lock timed out for " + file, e))); builder.processModifiedWithoutCheckout(file.getFilePath().getVirtualFile()); return false; builder.processModifiedWithoutCheckout(file.getFilePath().getVirtualFile()); return false;