private void sendChanges(long revNum, boolean discoverChangedPaths, ISVNLogEntryHandler handler) throws SVNException { Map revisionProps = myFSFS.getRevisionProperties(revNum); Map changedPaths = null; String author = null; Date date = null; String message = null; if (revisionProps != null) { author = (String) revisionProps.get(SVNRevisionProperty.AUTHOR); String datestamp = (String) revisionProps.get(SVNRevisionProperty.DATE); message = (String) revisionProps.get(SVNRevisionProperty.LOG); date = datestamp != null ? SVNTimeUtil.parseDateString(datestamp) : null; } if (revNum > 0 && discoverChangedPaths) { FSRevisionRoot root = myFSFS.createRevisionRoot(revNum); changedPaths = root.detectChanged(); } changedPaths = changedPaths == null ? new HashMap() : changedPaths; handler.handleLogEntry(new SVNLogEntry(changedPaths, revNum, author, date, message)); }
myPaths = new HashMap(); SVNLogEntry logEntry = new SVNLogEntry(myPaths, myRevision, myAuthor, myDate, myComment); myLogEntryHandler.handleLogEntry(logEntry);
public SVNCommitInfo closeEdit() throws SVNException { ISVNEditor wrappedEditor = getWrappedEditor(); if (!myIsRootOpened) { wrappedEditor.openRoot(myBaseRevision); } myCommitInfo = wrappedEditor.closeEdit(); if (myHandler != null) { SVNLogEntry logEntry = new SVNLogEntry(null, myCommitInfo.getNewRevision(), myCommitInfo.getAuthor(), myCommitInfo.getDate(), null); myHandler.handleLogEntry(logEntry); } return myCommitInfo; }
public SVNCommitInfo closeEdit() throws SVNException { ISVNEditor wrappedEditor = getWrappedEditor(); if (!myIsRootOpened) { wrappedEditor.openRoot(myBaseRevision); } myCommitInfo = wrappedEditor.closeEdit(); if (myHandler != null) { SVNLogEntry logEntry = new SVNLogEntry(null, myCommitInfo.getNewRevision(), myCommitInfo.getAuthor(), myCommitInfo.getDate(), null); myHandler.handleLogEntry(logEntry); } return myCommitInfo; }
public SVNCommitInfo closeEdit() throws SVNException { ISVNEditor wrappedEditor = getWrappedEditor(); if (!myIsRootOpened) { wrappedEditor.openRoot(myBaseRevision); } myCommitInfo = wrappedEditor.closeEdit(); if (myHandler != null) { SVNLogEntry logEntry = new SVNLogEntry(null, myCommitInfo.getNewRevision(), myCommitInfo.getAuthor(), myCommitInfo.getDate(), null); myHandler.handleLogEntry(logEntry); } return myCommitInfo; }
public SVNCommitInfo closeEdit() throws SVNException { ISVNEditor wrappedEditor = getWrappedEditor(); if (!myIsRootOpened) { wrappedEditor.openRoot(myBaseRevision); } myCommitInfo = wrappedEditor.closeEdit(); if (myHandler != null) { SVNLogEntry logEntry = new SVNLogEntry(null, myCommitInfo.getNewRevision(), myCommitInfo.getAuthor(), myCommitInfo.getDate(), null); myHandler.handleLogEntry(logEntry); } return myCommitInfo; }
myRevProps.put(SVNRevisionProperty.DATE, SVNDate.formatDate(myDate)); SVNLogEntry logEntry = new SVNLogEntry(myPaths, myRevision, myRevProps, myHasChildren); myLogEntryHandler.handleLogEntry(logEntry); if (logEntry.hasChildren()) {
myRevProps.put(SVNRevisionProperty.DATE, SVNDate.formatDate(myDate)); SVNLogEntry logEntry = new SVNLogEntry(myPaths, myRevision, myRevProps, myHasChildren); myLogEntryHandler.handleLogEntry(logEntry); if (logEntry.hasChildren()) {
myRevProps.put(SVNRevisionProperty.DATE, SVNDate.formatDate(myDate)); SVNLogEntry logEntry = new SVNLogEntry(myPaths, myRevision, myRevProps, myHasChildren); logEntry.setSubtractiveMerge(myIsSubtractiveMerge); myLogEntryHandler.handleLogEntry(logEntry);
String message = SVNReader.getString(buffer, 3); handler.handleLogEntry(new SVNLogEntry( changedPathsMap, revision, author, date, message));
entryRevProps = new SVNProperties(); SVNLogEntry entry = new SVNLogEntry(changedPaths, revision, entryRevProps, false); return entry;
String author = txnProps.getStringValue(SVNRevisionProperty.AUTHOR); String logMessage = txnProps.getStringValue(SVNRevisionProperty.LOG); return new SVNLogEntry(null, -1, author, SVNDate.parseDateString(date), logMessage); } finally { SVNAdminHelper.closeRepository(fsfs);
@Issue("JENKINS-18099") @Test public void globalExclusionRevprop() throws Exception { SubversionSCM scm = new SubversionSCM( Arrays.asList(new SubversionSCM.ModuleLocation("file://some/repo", ".")), new UpdateUpdater(), null, null, null, null, null, null, false); scm.getDescriptor().setGlobalExcludedRevprop("ignoreme"); SVNProperties p = new SVNProperties(); p.put("ignoreme", "*"); Map<String, SVNLogEntryPath> paths = new HashMap<>(); paths.put("/foo", new SVNLogEntryPath("/foo", SVNLogEntryPath.TYPE_MODIFIED, null, -1)); SVNLogEntry e = new SVNLogEntry(paths, 1234L, p, false); SVNLogFilter filter = scm.createSVNLogFilter(); assertFalse(filter.isIncluded(e)); }
String author = revProps.getStringValue(SVNRevisionProperty.AUTHOR); String logMessage = revProps.getStringValue(SVNRevisionProperty.LOG); return new SVNLogEntry(null, revNum, author, SVNDate.parseDateString(date), logMessage); } finally { SVNAdminHelper.closeRepository(fsfs);
String author = revProps.getStringValue(SVNRevisionProperty.AUTHOR); String logMessage = revProps.getStringValue(SVNRevisionProperty.LOG); return new SVNLogEntry(null, revNum, author, SVNDate.parseDateString(date), logMessage); } finally { SVNAdminHelper.closeRepository(fsfs);
entryRevProps = new SVNProperties(); SVNLogEntry entry = new SVNLogEntry(changedPaths, revision, entryRevProps, false); return entry;
String author = txnProps.getStringValue(SVNRevisionProperty.AUTHOR); String logMessage = txnProps.getStringValue(SVNRevisionProperty.LOG); return new SVNLogEntry(null, -1, author, SVNDate.parseDateString(date), logMessage); } finally { SVNAdminHelper.closeRepository(fsfs);
String author = revProps.getStringValue(SVNRevisionProperty.AUTHOR); String logMessage = revProps.getStringValue(SVNRevisionProperty.LOG); return new SVNLogEntry(null, revNum, author, SVNDate.parseDateString(date), logMessage); } finally { SVNAdminHelper.closeRepository(fsfs);
String author = txnProps.getStringValue(SVNRevisionProperty.AUTHOR); String logMessage = txnProps.getStringValue(SVNRevisionProperty.LOG); return new SVNLogEntry(null, -1, author, SVNDate.parseDateString(date), logMessage); } finally { SVNAdminHelper.closeRepository(fsfs);
entryRevProps = new SVNProperties(); SVNLogEntry entry = new SVNLogEntry(changedPaths, revision, entryRevProps, false); return entry;