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 7248 - Suggest offline mode for CVS
Summary: Suggest offline mode for CVS
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 enhancement (vote)
Assignee: issues@obsolete
: 12972 (view as bug list)
Depends on:
Reported: 2000-08-02 18:56 UTC by Jesse Glick
Modified: 2008-09-23 20:15 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2000-08-02 18:56:10 UTC
I am not sure what the current state of support is, but for CVS filesystems, I
would suggest an explicit "offline" mode you could turn on when disconnected
from the network. In this mode it would not attempt any CVS commands. But it
would be reasonable about the file status: in particular, you can detect the
difference between "Up-to-date" (assume no patches available), "Modified" (based
on file timestamp, again assume no merge situation), "Conflict", "Locally
Added", "Locally Removed", "Local".

Note that Emacs does something similar to this (e.g. modeline changes depending
on whether CVS file being edited is locally modified or not, without doing a
status command).

Currently, I think, if the CVS commands fail then files just show up with status
"Local" (which is certainly not right since they have entries in CVS/Entries).
In general I think the client should pay attention to the contents of the
Entries file more than it does, and try to avoid contacting the server when it
is not required. (Note that cvs itself is not so good at this, e.g. adding a
file without a commit contacts the server, even though it does not need to.)
Comment 1 Martin Entlicher 2000-08-03 14:17:59 UTC
For off-line mode you can turn off the FS property "Run CVS command to refresh
the status of files". After that no automatic refresh will be done. However it
is still possible to run CVS commands from the pop-up menu, which will fail when
connecting to the server.
It would be possible to do some check of Entries, but this may not give proper
status info. When the file is modified in the Editor, it automatically gets
status "Locally Modified".
In the current implementation the module has much common with the generic VCS
and therefore some special behavior will not be easy to implement. This
intelligent behavior can be perhaps more easily added to javacvs module.
I thing that in most cases running cvs commands off-line has no sense, even cvs
add has to contact the server if someone else didn't add the file to the
Comment 2 Jesse Glick 2000-08-03 14:32:59 UTC
Clearly exact status info cannot be gotten offline. But you can usually make a
good guess--Emacs does (tells you if the file is *probably* modified) and it is
very useful.

Re. cvs add offline: even if someone else did add the same file to the
repository, won't this just mean a conflict when you update anyway, just as for
any other change? I.e. how is adding a file different from modifying one?
Comment 3 Martin Entlicher 2000-08-03 14:45:59 UTC
Well, I leave this as a suggestion to try to find out the most accurate status
of a file when working offline.
Comment 4 dmladek 2001-02-05 12:58:59 UTC
Automaticaly changed Version from "Other" to "Dev"
Version "Other" is nonsence
Comment 5 Martin Entlicher 2001-04-10 17:19:57 UTC
Comment 6 Peter Pis 2008-09-23 20:15:56 UTC
*** Issue 12972 has been marked as a duplicate of this issue. ***