Examples of SvnFileRevision


Examples of org.jetbrains.idea.svn.history.SvnFileRevision

        SVNRevision svnRev = SVNRevision.create(r.getRevisionNumber());
        if (checkCurrentRevision && r == model.getCurrentRevision()) {
            return new CurrentRevision(_filePath.getVirtualFile(), new SvnRevisionNumber(svnRev));
        } else {
            SvnVcs svnVcs = SvnVcs.getInstance(_project);
            return new SvnFileRevision(svnVcs, svnRev, svnRev,
                    revisionHistory.getRepoRoot() + r.getRelPath(), null, null, null, null);
        }
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNFileRevision

                    myProperties = new SVNProperties();
                }
                if (myPropertiesDelta == null) {
                    myPropertiesDelta = new SVNProperties();
                }
                SVNFileRevision revision = new SVNFileRevision(myPath,
                        myRevision,
                        myProperties,
                        myPropertiesDelta,
                        myIsMergedRevision);
                myFileRevisionsHandler.openRevision(revision);
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNFileRevision

                    myProperties = new SVNProperties();
                }
                if (myPropertiesDelta == null) {
                    myPropertiesDelta = new SVNProperties();
                }
                SVNFileRevision revision = new SVNFileRevision(myPath,
                        myRevision,
                        myProperties,
                        myPropertiesDelta);
                myFileRevisionsHandler.openRevision(revision);
            }
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNFileRevision

        } else {
            contentsChanged = true;
        }

        if (handler != null) {
            handler.openRevision(new SVNFileRevision(pathRevision.getPath(), pathRevision.getRevision(),
                    revProps, propDiffs, pathRevision.isResultOfMerge()));
            if (contentsChanged) {
                SVNDeltaCombiner sourceCombiner = new SVNDeltaCombiner();
                SVNDeltaCombiner targetCombiner = new SVNDeltaCombiner();
                handler.applyTextDelta(pathRevision.getPath(), null);
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNFileRevision

                    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_SVN_MALFORMED_DATA, "Revision entry not a list");
                    SVNErrorManager.error(err, SVNLogType.NETWORK);
                }
                List items = SVNReader.parseTuple("srll?s", item.getItems(), null);
                String name = null;
                SVNFileRevision fileRevision = null;
                if (handler != null) {
                    name = SVNReader.getString(items, 0);
                    long revision = SVNReader.getLong(items, 1);
                    SVNProperties properties = SVNReader.getProperties(items, 2, null);
                    SVNProperties propertiesDelta = SVNReader.getPropertyDiffs(items, 3, null);
                    boolean isMergedRevision = SVNReader.getBoolean(items, 4);

                    if (name != null) {
                        fileRevision = new SVNFileRevision(name, revision,
                                properties, propertiesDelta,
                                isMergedRevision);
                    }
                }
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNFileRevision

                    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_SVN_MALFORMED_DATA, "Revision entry not a list");
                    SVNErrorManager.error(err, SVNLogType.NETWORK);
                }
                List items = SVNReader.parseTuple("srll?s", item.getItems(), null);
                String name = null;
                SVNFileRevision fileRevision = null;
                if (handler != null) {
                    name = SVNReader.getString(items, 0);
                    long revision = SVNReader.getLong(items, 1);
                    SVNProperties properties = SVNReader.getProperties(items, 2, null);
                    SVNProperties propertiesDelta = SVNReader.getPropertyDiffs(items, 3, null);
                    boolean isMergedRevision = SVNReader.getBoolean(items, 4);

                    if (name != null) {
                        fileRevision = new SVNFileRevision(name, revision,
                                properties, propertiesDelta,
                                isMergedRevision);
                    }
                }
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNFileRevision

                    myProperties = Collections.EMPTY_MAP;
                }
                if (myPropertiesDelta == null) {
                    myPropertiesDelta = Collections.EMPTY_MAP;
                }
                SVNFileRevision revision = new SVNFileRevision(myPath, myRevision, myProperties, myPropertiesDelta);
                myFileRevisionsHandler.openRevision(revision);
                myProperties = null;
                myPropertiesDelta = null;
                myPath = null;
                myFileRevisionsHandler.applyTextDelta(myPath, null);
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNFileRevision

                    myProperties = Collections.EMPTY_MAP;
                }
                if (myPropertiesDelta == null) {
                    myPropertiesDelta = Collections.EMPTY_MAP;
                }
                SVNFileRevision revision = new SVNFileRevision(myPath, myRevision, myProperties, myPropertiesDelta);
                myFileRevisionsHandler.openRevision(revision);
            }
            // handle close revision with props?
            if (myFileRevisionsHandler != null) {
                myFileRevisionsHandler.closeRevision(myPath);
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNFileRevision

                    getRepositoryPath(path), srev, erev };
            write("(w(s(n)(n)))", buffer);
            authenticate();
            buffer = new Object[5];
            while (true) {
                SVNFileRevision fileRevision = null;
                boolean skipDelta = false;
                try {
                    buffer = read("(SN(*P)(*Z)?S", buffer, false);
                    if (buffer[4] != null && ((String) buffer[4]).length() == 0) {
                        buffer[4] = null;
                        skipDelta = true;
                    } else {
                        read(")", null, false);
                    }
                    count++;
                } catch (SVNException e) {
                    read("x", buffer, true);
                    read("[()]", buffer, true);
                    return count;
                }
                String name = null;
                if (handler != null) {
                    name = (String) buffer[0];
                    long revision = SVNReader.getLong(buffer, 1);
                    Map properties = SVNReader.getMap(buffer, 2);
                    Map propertiesDelta = SVNReader.getMap(buffer, 3);
                    if (name != null) {
                        fileRevision = new SVNFileRevision(name, revision,
                                properties, propertiesDelta);
                    }
                    buffer[2] = null;
                    buffer[3] = null;
                }
View Full Code Here

Examples of org.tmatesoft.svn.core.io.SVNFileRevision

                } else {
                    contentsChanged = true;
                }

                if (handler != null) {
                    handler.openRevision(new SVNFileRevision(revPath, rev, revProps, propDiffs));
                    if (contentsChanged) {
                        SVNDeltaCombiner sourceCombiner = new SVNDeltaCombiner();
                        SVNDeltaCombiner targetCombiner = new SVNDeltaCombiner();
                        handler.applyTextDelta(path, null);
                        InputStream sourceStream = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.