public static SVNDate readDate(long date) { long time = date / 1000; return new SVNDate(time, (int) (date - time * 1000)); }
public static SVNDate fromDate(Date d) { if (d == null) { return SVNDate.NULL; } if (d instanceof SVNDate) { return (SVNDate) d; } return new SVNDate(d.getTime(), 0); }
SVNDate resultDate = new SVNDate(CALENDAR.getTimeInMillis(), microseconds); if (oldTimeZone != null) { CALENDAR.setTimeZone(oldTimeZone);
SVNDate resultDate = new SVNDate(CALENDAR.getTimeInMillis(), microseconds); if (oldTimeZone != null) { CALENDAR.setTimeZone(oldTimeZone);
SVNDate resultDate = new SVNDate(CALENDAR.getTimeInMillis(), microseconds); if (oldTimeZone != null) { CALENDAR.setTimeZone(oldTimeZone);
private void processCommittedQueue(SvnCommittedQueue queue, long newRevision, Date revDate, String revAuthor) throws SVNException { final Map<File, Collection<SvnCommittedQueueItem>> itemsMap = new HashMap<File, Collection<SvnCommittedQueueItem>>(); for (final SvnCommittedQueueItem cqi : queue.queue.values()) { final File root = getWcContext().getDb().getWCRoot(cqi.localAbspath); if (!itemsMap.containsKey(root)) { itemsMap.put(root, new ArrayList<SvnNgCommit.SvnCommittedQueueItem>()); } itemsMap.get(root).add(cqi); } queue.queue.clear(); for (final File root : itemsMap.keySet()) { final SVNSqlJetDb db = getWcContext().getDb().getSDb(root); db.beginTransaction(SqlJetTransactionMode.WRITE); try { for (SvnCommittedQueueItem cqi : itemsMap.get(root)) { processCommittedInternal(cqi.localAbspath, cqi.recurse, true, newRevision, new SVNDate(revDate.getTime(), 0), revAuthor, cqi.newDavCache, cqi.unlockOnly, cqi.noUnlock, cqi.keepChangelist, cqi.sha1Checksum, queue); } getWcContext().wqRun(root); } catch (SVNException th) { db.rollback(); throw th; } finally { db.commit(); } } }
File reposRelPath = new File(SVNURLUtil.getRelativeURL(reposInfo.reposRootUrl, copyFromUrl, false)); getContext().getDb().opCopyDir(path, new SVNProperties(), copyFromRev, new SVNDate(0, 0), null, reposRelPath, reposInfo.reposRootUrl, File reposRelPath = new File(SVNURLUtil.getRelativeURL(reposInfo.reposRootUrl, copyFromUrl, false)); getContext().getDb().opCopyDir(path, new SVNProperties(), copyFromRev, new SVNDate(0, 0), null, reposRelPath, reposInfo.reposRootUrl,
long changedRev = entryProps.containsName(SVNProperty.COMMITTED_REVISION) ? Long.parseLong(entryProps.getStringValue(SVNProperty.COMMITTED_REVISION)) : - 1; String changedAuthor = entryProps.getStringValue(SVNProperty.LAST_AUTHOR); SVNDate changedDate = entryProps.containsName(SVNProperty.COMMITTED_REVISION) ? SVNDate.parseDate(entryProps.getStringValue(SVNProperty.COMMITTED_DATE)) : new SVNDate(0, 0);
if (modified) { timestamp = SVNFileUtil.getFileLastModified(from); committedDate = new SVNDate(timestamp, 0); } else { Structure<NodeInfo> nodeInfo = getWcContext().getDb().readInfo(from, NodeInfo.changedDate);