public long getTimeInMicros() { return 1000 * getTime() + myMicroSeconds; } }
public long getTimeInMicros() { return 1000 * getTime() + myMicroSeconds; } }
public long getTimeInMicros() { return 1000 * getTime() + myMicroSeconds; } }
@Override public long getTimestamp() { return date!=null ? SVNDate.parseDate(date).getTime() : -1; }
public void restoreFile(String name) throws SVNException { SVNVersionedProperties props = getProperties(name); SVNEntry entry = getEntry(name, true); boolean special = props.getPropertyValue(SVNProperty.SPECIAL) != null; File src = getBaseFile(name, false); File dst = getFile(name); SVNTranslator.translate(this, name, SVNFileUtil.getBasePath(src), SVNFileUtil.getBasePath(dst), true); boolean executable = props.getPropertyValue(SVNProperty.EXECUTABLE) != null; boolean needsLock = props.getPropertyValue(SVNProperty.NEEDS_LOCK) != null; if (needsLock) { SVNFileUtil.setReadonly(dst, entry.getLockToken() == null); } if (executable) { SVNFileUtil.setExecutable(dst, true); } markResolved(name, true, false, SVNConflictChoice.MERGED); long tstamp; if (myWCAccess.getOptions().isUseCommitTimes() && !special) { entry.setTextTime(entry.getCommittedDate()); tstamp = SVNDate.parseDate(entry.getCommittedDate()).getTime(); dst.setLastModified(tstamp); } else { tstamp = System.currentTimeMillis(); dst.setLastModified(tstamp); entry.setTextTime(SVNDate.formatDate(new Date(tstamp))); } saveEntries(false); }
public void restoreFile(String name) throws SVNException { SVNVersionedProperties props = getProperties(name); SVNEntry entry = getEntry(name, true); boolean special = props.getPropertyValue(SVNProperty.SPECIAL) != null; File src = getBaseFile(name, false); File dst = getFile(name); SVNTranslator.translate(this, name, SVNFileUtil.getBasePath(src), SVNFileUtil.getBasePath(dst), true); boolean executable = props.getPropertyValue(SVNProperty.EXECUTABLE) != null; boolean needsLock = props.getPropertyValue(SVNProperty.NEEDS_LOCK) != null; if (needsLock) { SVNFileUtil.setReadonly(dst, entry.getLockToken() == null); } if (executable) { SVNFileUtil.setExecutable(dst, true); } markResolved(name, true, false, SVNConflictChoice.MERGED); long tstamp; if (myWCAccess.getOptions().isUseCommitTimes() && !special) { entry.setTextTime(entry.getCommittedDate()); tstamp = SVNDate.parseDate(entry.getCommittedDate()).getTime(); dst.setLastModified(tstamp); } else { tstamp = System.currentTimeMillis(); dst.setLastModified(tstamp); entry.setTextTime(SVNDate.formatDate(new Date(tstamp))); } saveEntries(false); }
myCurrentFile.setLastModified(SVNDate.parseDate(date).getTime());
myCurrentFile.setLastModified(SVNDate.parseDate(date).getTime());
SVNFileUtil.setLastModified(myCurrentFile, SVNDate.parseDate(date).getTime());
public void restoreFile(String name) throws SVNException { SVNVersionedProperties props = getProperties(name); SVNEntry entry = getEntry(name, true); boolean special = props.getPropertyValue(SVNProperty.SPECIAL) != null; File src = getBaseFile(name, false); File dst = getFile(name); SVNTranslator.translate(this, name, SVNFileUtil.getBasePath(src), SVNFileUtil.getBasePath(dst), true); boolean executable = props.getPropertyValue(SVNProperty.EXECUTABLE) != null; boolean needsLock = props.getPropertyValue(SVNProperty.NEEDS_LOCK) != null; if (needsLock) { SVNFileUtil.setReadonly(dst, entry.getLockToken() == null); } if (executable) { SVNFileUtil.setExecutable(dst, true); } markResolved(name, true, false, SVNConflictChoice.MERGED); long tstamp; if (myWCAccess.getOptions().isUseCommitTimes() && !special) { entry.setTextTime(entry.getCommittedDate()); tstamp = SVNDate.parseDate(entry.getCommittedDate()).getTime(); SVNFileUtil.setLastModified(dst, tstamp); } else { tstamp = System.currentTimeMillis(); SVNFileUtil.setLastModified(dst, tstamp); entry.setTextTime(SVNDate.formatDate(new Date(dst.lastModified()))); } saveEntries(false); }
db.changedRevsion = newChangedRev; if (newChangedDate != null && newChangedDate.getTime() != 0) { db.changedDate = newChangedDate;
Structure<NodeInfo> nodeInfo = getWcContext().getDb().readInfo(from, NodeInfo.changedDate); committedDate = nodeInfo.<SVNDate>get(NodeInfo.changedDate); timestamp = committedDate.getTime(); nodeInfo.release();