Due to the integration with kenai involved VCS systems (svn hg) have to provide the remote location for a versioned file.
The new method getAttribute(File file, String attrName) in the VCSInterceptor should provide additional VCS specific
information about versioned files.
The only supported attribute at this moment is VCSInterceptor.ATTRIBUTE_REMOTE_LOCATION =
"ProvidedExtensions.RemoteLocation" for which VCS systems overrinding getAttribute should return the files remote
repository, resp. remote origin. (e.g. Repository URL in case of SVN or default pull in case of Mercurial).
Created attachment 77080 [details]
changes in master fs
Created attachment 77081 [details]
changes in vcs
*** Issue 158600 has been marked as a duplicate of this issue. ***
getAttribute(File file, String attrName) in the VCSInterceptor returns a String while the MasterFs getAttribute(final
File file, final String attrName) method it delegates to returns an Object. As there is no reason for such a limitation
in the VCSInterceptor and there is already a request for a new friend attribute returning Runnable (see below) we should
change the return value to Object. Please note that the getAttribute() api wasn't released yet.
- VCSInterceptor.getAttribute should return Object instead of String
- new friend attribute "ProvidedExtensions.Refresh" which returns a runnable to refresh the VCS Status for the file
given in getAttribute
Created attachment 81950 [details]
changes in vcs
user: Tomas Stupka <firstname.lastname@example.org>
date: Tue May 19 12:00:57 2009 +0200
Integrated into 'main-golden', will be available in build *200905200201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Tomas Stupka <email@example.com>
Log: #158681 - Extend VCS spi with getAtribute