public void changeFileProperty(String commitPath, String name, String value) throws SVNException { myCurrentFile.propertyChanged(name, value); if (myWCAccess.getOptions().isUseCommitTimes() && SVNProperty.COMMITTED_DATE.equals(name)) { myCurrentFile.CommitTime = value; } }
private void changeFileProperty(String name, SVNPropertyValue value, SVNFileInfo fileInfo) { if (!fileInfo.isSkipped) { fileInfo.propertyChanged(name, value); if (myWCAccess.getOptions().isUseCommitTimes() && SVNProperty.COMMITTED_DATE.equals(name)) { fileInfo.CommitTime = value.getString(); if (fileInfo.CommitTime != null) { fileInfo.CommitTime = fileInfo.CommitTime.trim(); } } } }
private void changeFileProperty(String name, SVNPropertyValue value, SVNFileInfo fileInfo) { if (!fileInfo.isSkipped) { fileInfo.propertyChanged(name, value); if (myWCAccess.getOptions().isUseCommitTimes() && SVNProperty.COMMITTED_DATE.equals(name)) { fileInfo.CommitTime = value.getString(); if (fileInfo.CommitTime != null) { fileInfo.CommitTime = fileInfo.CommitTime.trim(); } } } }
private void changeFileProperty(String name, SVNPropertyValue value, SVNFileInfo fileInfo) { if (!fileInfo.isSkipped) { fileInfo.propertyChanged(name, value); if (myWCAccess.getOptions().isUseCommitTimes() && SVNProperty.COMMITTED_DATE.equals(name)) { fileInfo.CommitTime = value.getString(); if (fileInfo.CommitTime != null) { fileInfo.CommitTime = fileInfo.CommitTime.trim(); } } } }
private void changeFileProperty(String name, SVNPropertyValue value, SVNFileInfo fileInfo) { if (!fileInfo.isSkipped) { fileInfo.propertyChanged(name, value); if (myWCAccess.getOptions().isUseCommitTimes() && SVNProperty.COMMITTED_DATE.equals(name)) { fileInfo.commitTime = value.getString(); if (fileInfo.commitTime != null) { fileInfo.commitTime = fileInfo.commitTime.trim(); } } } }
private void changeFileProperty(String name, SVNPropertyValue value, SVNFileInfo fileInfo) { if (!fileInfo.isSkipped) { fileInfo.propertyChanged(name, value); if (myWCAccess.getOptions().isUseCommitTimes() && SVNProperty.COMMITTED_DATE.equals(name)) { fileInfo.commitTime = value.getString(); if (fileInfo.commitTime != null) { fileInfo.commitTime = fileInfo.commitTime.trim(); } } } }
private void changeFileProperty(String name, SVNPropertyValue value, SVNFileInfo fileInfo) { if (!fileInfo.isSkipped) { fileInfo.propertyChanged(name, value); if (myWCAccess.getOptions().isUseCommitTimes() && SVNProperty.COMMITTED_DATE.equals(name)) { fileInfo.commitTime = value.getString(); if (fileInfo.commitTime != null) { fileInfo.commitTime = fileInfo.commitTime.trim(); } } } }
try { SVNAdminAreaInfo info = wcAccess.openAnchor(path, true, recursive ? SVNWCAccess.INFINITE_DEPTH : 0); boolean useCommitTimes = getOptions().isUseCommitTimes(); doRevert(path, info.getAnchor(), recursive, useCommitTimes); } catch (SVNException e) {
myReposUuid = reposUuid; myExternalsStore = externalsStore; myIsUseCommitTimes = myWCContext.getOptions().isUseCommitTimes(); if (myTargetBasename != null) { myTargetAbspath = SVNFileUtil.createFilePath(myTargetAbspath, myTargetBasename);
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, 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); long tstamp; if (myWCAccess.getOptions().isUseCommitTimes() && !special) { entry.setTextTime(entry.getCommittedDate()); tstamp = SVNTimeUtil.parseDate(entry.getCommittedDate()).getTime(); dst.setLastModified(tstamp); } else { tstamp = System.currentTimeMillis(); dst.setLastModified(tstamp); entry.setTextTime(SVNTimeUtil.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); }
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(); SVNFileUtil.setLastModified(dst, tstamp); } else { tstamp = System.currentTimeMillis(); SVNFileUtil.setLastModified(dst, tstamp); entry.setTextTime(SVNDate.formatDate(new Date(dst.lastModified()))); } saveEntries(false); }
boolean useCommitTimes = getOptions().isUseCommitTimes(); reverted |= doRevert(path, info.getAnchor(), depth, useCommitTimes, changeLists); } catch (SVNException e) {
boolean useCommitTimes = getOptions().isUseCommitTimes(); reverted |= doRevert(path, info.getAnchor(), depth, useCommitTimes, changeLists); } catch (SVNException e) {
boolean useCommitTimes = getOptions().isUseCommitTimes(); reverted |= doRevert(path, info.getAnchor(), depth, useCommitTimes, changeLists); } catch (SVNException e) {
boolean useCommitTimes = getOperation().getOptions().isUseCommitTimes(); Map<String, SVNProperties> iprops = repository.getInheritedProperties("", revnum, null); if (iprops != null && !iprops.isEmpty()) {
@Override protected Void run(SVNWCContext context) throws SVNException { boolean useCommitTimes = getOperation().getOptions().isUseCommitTimes();
boolean useCommitTimes = getOperation().getOptions().isUseCommitTimes(); String target;
boolean useCommitTimes = getOperation().getOptions().isUseCommitTimes();