public long getCreatedRevision() { if (myFreshRootPredecessorId != null) { return myFreshRootPredecessorId.getRevision(); } return myId.getRevision(); }
public long getCreatedRevision() { if (myFreshRootPredecessorId != null) { return myFreshRootPredecessorId.getRevision(); } return myId.getRevision(); }
public long getCreatedRevision() { if (myFreshRootPredecessorId != null) { return myFreshRootPredecessorId.getRevision(); } return myId.getRevision(); }
public FSTransactionInfo(FSID rootID, FSID baseID) { myRootID = rootID; myBaseID = baseID; myTxnId = myRootID.getTxnID(); myBaseRevision = myBaseID.getRevision(); }
public FSTransactionInfo(FSID rootID, FSID baseID) { myRootID = rootID; myBaseID = baseID; myTxnId = myRootID.getTxnID(); myBaseRevision = myBaseID.getRevision(); }
public FSTransactionInfo(FSID rootID, FSID baseID) { myRootID = rootID; myBaseID = baseID; myTxnId = myRootID.getTxnID(); myBaseRevision = myBaseID.getRevision(); }
public FSTransactionInfo(FSID rootID, FSID baseID) { myRootID = rootID; myBaseID = baseID; myTxnId = myRootID.getTxnID(); myBaseRevision = myBaseID.getRevision(); }
private Map collectProperties(FSRevisionNode revNode) throws SVNException { Map properties = new HashMap(); Map versionedProps = revNode.getProperties(myFSFS); if (versionedProps != null && versionedProps.size() > 0) { properties.putAll(versionedProps); } Map metaprops = null; try { metaprops = myFSFS.compoundMetaProperties(revNode.getId().getRevision()); } catch (SVNException svne) { // } if (metaprops != null && metaprops.size() > 0) { properties.putAll(metaprops); } return properties; }
public FSID copy() { return new FSID(getNodeID(), getTxnID(), getCopyID(), getRevision(), getOffset()); }
public FSID copy() { return new FSID(getNodeID(), getTxnID(), getCopyID(), getRevision(), getOffset()); }
public FSID copy() { return new FSID(getNodeID(), getTxnID(), getCopyID(), getRevision(), getOffset()); }
public FSID copy() { return new FSID(getNodeID(), getTxnID(), getCopyID(), getRevision(), getOffset()); }
public void openFile(String path, long revision) throws SVNException { String fullPath = SVNPathUtil.concatToAbs(myBasePath, path); FSRevisionNode revNode = myTxnRoot.getRevisionNode(fullPath); if (FSRepository.isValidRevision(revision) && revision < revNode.getId().getRevision()) { SVNErrorManager.error(FSErrors.errorOutOfDate(fullPath, myTxnRoot.getTxnID())); } }
public void changeDirProperty(String name, String value) throws SVNException { DirBaton dirBaton = (DirBaton) myDirsStack.peek(); if (FSRepository.isValidRevision(dirBaton.getBaseRevision())) { FSRevisionNode existingNode = myTxnRoot.getRevisionNode(dirBaton.getPath()); long createdRev = existingNode.getId().getRevision(); if (dirBaton.getBaseRevision() < createdRev) { SVNErrorManager.error(FSErrors.errorOutOfDate(dirBaton.getPath(), myTxnRoot.getTxnID())); } } changeNodeProperty(dirBaton.getPath(), name, value); }
public void deleteEntry(String path, long revision) throws SVNException { String fullPath = SVNPathUtil.concatToAbs(myBasePath, path); SVNNodeKind kind = myTxnRoot.checkNodeKind(fullPath); if (kind == SVNNodeKind.NONE) { return; } FSRevisionNode existingNode = myTxnRoot.getRevisionNode(fullPath); long createdRev = existingNode.getId().getRevision(); if (FSRepository.isValidRevision(revision) && revision < createdRev) { SVNErrorManager.error(FSErrors.errorOutOfDate(fullPath, myTxnRoot.getTxnID())); } myCommitter.deleteNode(fullPath); }
public FSRevisionNode getRevisionNode(FSID id) throws SVNException { FSFile revisionFile = null; if (id.isTxn()) { File file = new File(getTransactionDir(id.getTxnID()), PATH_PREFIX_NODE + id.getNodeID() + "." + id.getCopyID()); revisionFile = new FSFile(file); } else { revisionFile = getRevisionFile(id.getRevision()); revisionFile.seek(id.getOffset()); } Map headers = null; try { headers = revisionFile.readHeader(); } finally{ revisionFile.close(); } return FSRevisionNode.fromMap(headers); }
public FSID createSuccessor(FSID oldId, FSRevisionNode newRevNode, String copyId) throws SVNException { if (copyId == null) { copyId = oldId.getCopyID(); } FSID id = FSID.createTxnId(oldId.getNodeID(), copyId, myTxnID); newRevNode.setId(id); if (newRevNode.getCopyRootPath() == null) { newRevNode.setCopyRootPath(newRevNode.getCreatedPath()); newRevNode.setCopyRootRevision(newRevNode.getId().getRevision()); } getOwner().putTxnRevisionNode(newRevNode.getId(), newRevNode); return id; }
public FSID createSuccessor(FSID oldId, FSRevisionNode newRevNode, String copyId) throws SVNException { if (copyId == null) { copyId = oldId.getCopyID(); } FSID id = FSID.createTxnId(oldId.getNodeID(), copyId, myTxnID); newRevNode.setId(id); if (newRevNode.getCopyRootPath() == null) { newRevNode.setCopyRootPath(newRevNode.getCreatedPath()); newRevNode.setCopyRootRevision(newRevNode.getId().getRevision()); } newRevNode.setIsFreshTxnRoot(false); getOwner().putTxnRevisionNode(newRevNode.getId(), newRevNode); return id; }
public FSID createSuccessor(FSID oldId, FSRevisionNode newRevNode, String copyId) throws SVNException { if (copyId == null) { copyId = oldId.getCopyID(); } FSID id = FSID.createTxnId(oldId.getNodeID(), copyId, myTxnID); newRevNode.setId(id); if (newRevNode.getCopyRootPath() == null) { newRevNode.setCopyRootPath(newRevNode.getCreatedPath()); newRevNode.setCopyRootRevision(newRevNode.getId().getRevision()); } newRevNode.setIsFreshTxnRoot(false); getOwner().putTxnRevisionNode(newRevNode.getId(), newRevNode); return id; }
public FSID createSuccessor(FSID oldId, FSRevisionNode newRevNode, String copyId) throws SVNException { if (copyId == null) { copyId = oldId.getCopyID(); } FSID id = FSID.createTxnId(oldId.getNodeID(), copyId, myTxnID); newRevNode.setId(id); if (newRevNode.getCopyRootPath() == null) { newRevNode.setCopyRootPath(newRevNode.getCreatedPath()); newRevNode.setCopyRootRevision(newRevNode.getId().getRevision()); } newRevNode.setIsFreshTxnRoot(false); getOwner().putTxnRevisionNode(newRevNode.getId(), newRevNode); return id; }