Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
View | Details | Raw Unified | Return to bug 136490
Collapse All | Expand All

(-)subversion/src/META-INF/services/org.netbeans.modules.versioning.spi.VersioningSystem (-1 lines)
Removed Link Here 
1
org.netbeans.modules.subversion.SubversionVCS
(-)subversion/src/org/netbeans/modules/subversion/resources/svn-layer.xml (+8 lines)
 Lines 44-49   made subject to such option by the copyr Link Here 
44
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
44
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
45
<filesystem>
45
<filesystem>
46
46
47
    <folder name="Services">
48
        <file name="org-netbeans-modules-subversion-SubversionVCS.instance">
49
            <attr name="instanceCreate" methodvalue="org.netbeans.modules.versioning.spi.VersioningSystem.create"/>
50
            <attr name="path" stringvalue="[\._]svn"/>
51
            <attr name="real" stringvalue="org.netbeans.modules.subversion.SubversionVCS"/>
52
        </file>
53
    </folder>
54
    
47
    <folder name="Actions">
55
    <folder name="Actions">
48
        <folder name="Subversion">
56
        <folder name="Subversion">
49
            <file name="org-netbeans-modules-subversion-ui-status-OpenVersioningAction.instance">
57
            <file name="org-netbeans-modules-subversion-ui-status-OpenVersioningAction.instance">
(-)versioning/src/org/netbeans/modules/versioning/spi/VersioningSystem.java (+41 lines)
 Lines 99-104   public abstract class VersioningSystem { Link Here 
99
     * Protected constructor, does nothing.   
99
     * Protected constructor, does nothing.   
100
     */
100
     */
101
    protected VersioningSystem() {
101
    protected VersioningSystem() {
102
    }
103
    
104
    static VersioningSystem create(Map map) {
105
        String name = (String)map.get("real");
106
        String path = (String)map.get("path");
107
        
108
        return null;
109
    }
110
    public static VersioningSystem create(final Class<? extends VersioningSystem> real, final String path) {
111
        return new VersioningSystem() {
112
            VersioningSystem instance;
113
114
            @Override
115
            public void getOriginalFile(File workingCopy, File originalFile) {
116
                super.getOriginalFile(workingCopy, originalFile);
117
            }
118
119
            @Override
120
            public File getTopmostManagedAncestor(File file) {
121
                for (;;) {
122
                    if (new File(file, path).exists()) {
123
                        return file;
124
                    }
125
                    file = file.getParentFile();
126
                }
127
            }
128
129
            @Override
130
            public VCSAnnotator getVCSAnnotator() {
131
                if (instance == null) {
132
                    instance = real.newInstance();
133
                }
134
                return instance.getVCSAnnotator();
135
            }
136
137
            @Override
138
            public VCSInterceptor getVCSInterceptor() {
139
                return super.getVCSInterceptor();
140
            }
141
            
142
        };
102
    }
143
    }
103
144
104
    /**
145
    /**

Return to bug 136490
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo