This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 229919 - No history available for remote files
Summary: No history available for remote files
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Localhistory (show other bugs)
Version: 7.4
Hardware: PC All
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-17 13:57 UTC by Alexander Pepin
Modified: 2013-06-13 01:16 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2013-05-17 13:57:11 UTC
Steps to reproduce:
- add a remote host
- open any file from the remote host
- make some changes in the file then save it
- click on History button in the editor
Result: 'No history available' message appears.
Comment 1 Vladimir Kvashin 2013-05-17 16:35:55 UTC
Local history is file-centric now, see, for example 
in History.getLocalHistory() (History.java:104) I see the following code

    VersioningSystem getLocalHistory(FileObject fo) {
        File file = FileUtil.toFile(fo);
        if(file == null) {
            LOG.log(Level.FINE, "local history available only for local files {0}", fo); // NOI18N
            return null; // XXX currently LocalHistory works only with io.File. 
        }
        ....
}
Comment 2 Tomas Stupka 2013-05-21 20:20:48 UTC
changes in localhistory and versioning to make it remote fs capable

core-main #1c48acc97d3c
core-main #20e46fb2f626
core-main #117bc36b0a4c
Comment 3 Tomas Stupka 2013-05-21 20:21:56 UTC
additional work is necessary in o.n.m.versioning.core.api.VCSFileProxy
Comment 4 Quality Engineering 2013-05-23 08:16:57 UTC
Integrated into 'main-golden', will be available in build *201305230439* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1c48acc97d3c
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #229919 - No history available for remote files
HistoryAction has to work with both - io.File and VCSFileProxy
Comment 5 Quality Engineering 2013-05-29 02:03:36 UTC
Integrated into 'main-golden', will be available in build *201305282301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/fa7a5617d73f
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: implemented VCSFileProxyOperations.lastModified (#229919  No history available for remote files)
Comment 6 Antonin Nebuzelsky 2013-05-31 09:43:25 UTC
Tomasi, what else needs to be done? Is this ready to be closed now?
Comment 7 Tomas Stupka 2013-05-31 09:59:17 UTC
(In reply to comment #6)
> Tomasi, what else needs to be done? Is this ready to be closed now?

the work in LH is mostly done, remote must provide createProxy(url)
Comment 8 Quality Engineering 2013-06-12 02:03:28 UTC
Integrated into 'main-golden', will be available in build *201306112301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9410f15cf81e
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixing #229919 No history available for remote files:  added  toURI()  and  create(URI) methods
Comment 9 Tomas Stupka 2013-06-12 11:29:55 UTC
fixed in core-main #61db03289659
Comment 10 Quality Engineering 2013-06-13 01:16:00 UTC
Integrated into 'main-golden', will be available in build *201306122301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/61db03289659
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #229919 - No history available for remote files