private Date getRevisionTime(long revision) throws SVNException { SVNProperties revisionProperties = getRevisionProperties(revision); String timeString = revisionProperties.getStringValue(SVNRevisionProperty.DATE); if (timeString == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_GENERAL, "Failed to find time on revision {0}", new Long(revision)); SVNErrorManager.error(err, SVNLogType.FSFS); } return SVNDate.parseDateString(timeString); }
private Date getRevisionTime(long revision) throws SVNException { SVNProperties revisionProperties = getRevisionProperties(revision); String timeString = revisionProperties.getStringValue(SVNRevisionProperty.DATE); if (timeString == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_GENERAL, "Failed to find time on revision {0}", new Long(revision)); SVNErrorManager.error(err, SVNLogType.FSFS); } return SVNDate.parseDateString(timeString); }
private Date getRevisionTime(long revision) throws SVNException { SVNProperties revisionProperties = getRevisionProperties(revision); String timeString = revisionProperties.getStringValue(SVNRevisionProperty.DATE); if (timeString == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_GENERAL, "Failed to find time on revision {0}", new Long(revision)); SVNErrorManager.error(err, SVNLogType.FSFS); } return SVNDate.parseDateString(timeString); }
public static void validateProperty(String propertyName, SVNPropertyValue propertyValue) throws SVNException { if (!SVNProperty.isRegularProperty(propertyName)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "Storage of non-regular property ''{0}'' is disallowed through the repository interface, and could indicate a bug in your client", propertyName); SVNErrorManager.error(err, SVNLogType.FSFS); } if (SVNProperty.isSVNProperty(propertyName) && propertyValue != null) { if (SVNRevisionProperty.DATE.equals(propertyName)) { try { SVNDate.parseDateString(propertyValue.getString()); } catch (SVNException svne) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.BAD_PROPERTY_VALUE); SVNErrorManager.error(err, SVNLogType.FSFS); } } } }
public static void validateProperty(String propertyName, SVNPropertyValue propertyValue) throws SVNException { if (!SVNProperty.isRegularProperty(propertyName)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "Storage of non-regular property ''{0}'' is disallowed through the repository interface, and could indicate a bug in your client", propertyName); SVNErrorManager.error(err, SVNLogType.FSFS); } if (SVNProperty.isSVNProperty(propertyName) && propertyValue != null) { if (SVNRevisionProperty.DATE.equals(propertyName)) { try { SVNDate.parseDateString(propertyValue.getString()); } catch (SVNException svne) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.BAD_PROPERTY_VALUE); SVNErrorManager.error(err, SVNLogType.FSFS); } } } }
public static void validateProperty(String propertyName, SVNPropertyValue propertyValue) throws SVNException { if (!SVNProperty.isRegularProperty(propertyName)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "Storage of non-regular property ''{0}'' is disallowed through the repository interface, and could indicate a bug in your client", propertyName); SVNErrorManager.error(err, SVNLogType.FSFS); } if (SVNProperty.isSVNProperty(propertyName) && propertyValue != null) { if (SVNRevisionProperty.DATE.equals(propertyName)) { try { SVNDate.parseDateString(propertyValue.getString()); } catch (SVNException svne) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.BAD_PROPERTY_VALUE); SVNErrorManager.error(err, SVNLogType.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 = 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);
String author = revisionProps.getStringValue(SVNRevisionProperty.AUTHOR); String datestamp = revisionProps.getStringValue(SVNRevisionProperty.DATE); Date date = datestamp != null ? SVNDate.parseDateString(datestamp) : null;
SVNErrorManager.error(FSErrors.errorCorruptLockFile(lockPath, this), SVNLogType.FSFS); Date creationDate = SVNDate.parseDateString(creationTime); String expirationTime = SVNPropertyValue.getPropertyAsString(lockProps.getSVNPropertyValue(FSFS.EXPIRATION_DATE_LOCK_KEY)); Date expirationDate = null; if (expirationTime != null) { expirationDate = SVNDate.parseDateString(expirationTime);
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);
public SVNCommitInfo closeEdit() throws SVNException { try { if (myTxn == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "No valid transaction supplied to closeEdit()"); SVNErrorManager.error(err, SVNLogType.FSFS); } long committedRev = -1; if (myDeltaConsumer != null) { myDeltaConsumer.close(); } SVNErrorMessage[] errorMessage = new SVNErrorMessage[1]; committedRev = myCommitter.commitTxn(true, true, errorMessage, null); SVNProperties revProps = myFSFS.getRevisionProperties(committedRev); String dateProp = revProps.getStringValue(SVNRevisionProperty.DATE); Date datestamp = dateProp != null ? SVNDate.parseDateString(dateProp) : null; SVNErrorMessage err = errorMessage[0]; if (err != null && err.getErrorCode() == SVNErrorCode.REPOS_POST_COMMIT_HOOK_FAILED) { String message = err.getChildErrorMessage() != null ? err.getChildErrorMessage().getFullMessage() : err.getFullMessage(); err = SVNErrorMessage.create(SVNErrorCode.REPOS_POST_COMMIT_HOOK_FAILED, message, SVNErrorMessage.TYPE_WARNING); } SVNCommitInfo info = new SVNCommitInfo(committedRev, getAuthor(), datestamp, err); releaseLocks(); return info; } finally { myRepository.closeRepository(); } }
Date datestamp = dateProp != null ? SVNDate.parseDateString(dateProp) : null;
Date datestamp = dateProp != null ? SVNDate.parseDateString(dateProp) : null;
log = revProps.getStringValue(SVNRevisionProperty.LOG); String timeString = revProps.getStringValue(SVNRevisionProperty.DATE); lastCommitDate = timeString != null ? SVNDate.parseDateString(timeString) : null;
log = revProps.getStringValue(SVNRevisionProperty.LOG); String timeString = revProps.getStringValue(SVNRevisionProperty.DATE); lastCommitDate = timeString != null ? SVNDate.parseDateString(timeString) : null;
log = revProps.getStringValue(SVNRevisionProperty.LOG); String timeString = revProps.getStringValue(SVNRevisionProperty.DATE); lastCommitDate = timeString != null ? SVNDate.parseDateString(timeString) : null;