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.
Summary: | CVS can't commit; Weird statuses in diff after a tree conflict in a file | ||
---|---|---|---|
Product: | versioncontrol | Reporter: | Zom-B |
Component: | CVS | Assignee: | Ondrej Vrabec <ovrabec> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
update log
commit log screenshot ide-log cvs-log cvslog.in cvslog.out |
Description
Zom-B
2014-08-25 09:13:35 UTC
Created attachment 148874 [details]
update log
Created attachment 148875 [details]
commit log
Created attachment 148876 [details]
screenshot
Why wasn't this uploaded with the original post? I did select it under add attachment.
Can you try to delete cvs cache folder? Delete $CACHE_FOLDER$/cvscache folder and restart the IDE, then do CVS->Diff again, does it change anything? you can grab $CACHE_FOLDER$ value from Help -> About: Cache directory I tried that and it broke everything irreversibly. Whenever I try anything (like update, diff) I get "CVS command failed with the following error:" and it shows me a box with just the complete CVS log that contains no error at all. Now I can't use CVS at all. I removed the new cvscache and placed the backup back but this new problem persist and I can't use CVS anymore. can you please attach the IDE log (View -> IDE log) when running with deleted cvscache folder? (In reply to Ondrej Vrabec from comment #6) > can you please attach the IDE log (View -> IDE log) when running with > deleted cvscache folder? ... and right after you call CVS -> Show Changes I uninstalled NetBeans entirely and deleted all traces it left on the system (registry excluded but I think that's not used), then re-installed, and the problem still persists. Log when running clean attached. When I do "show changes" or any other CVS command, the IDE log stays empty and I get a dialog similar to the 5th attachment. Created attachment 148879 [details]
ide-log
Created attachment 148880 [details]
cvs-log
(In reply to Zom-B from comment #9) > Created attachment 148879 [details] > ide-log There is no error in the log, did you attach it after you got the error from cvs->show changes or before? Both. Like I said, the CVS actions I tried don't output anything to the IDE-log. (In reply to Zom-B from comment #12) > Both. > Like I said, the CVS actions I tried don't output anything to the IDE-log. No error message in the output window either? Nope then please try running the IDE with -J-DcvsClientLog=PATH_TO_A_FILE (e.g. -J-DcvsClientLog=C:\Temp\cvslog) and run cvs->Show Changes. You should get the error but also C:\Temp\cvslog.in and C:\Temp\cvslog.out should be generated and contain the server/client comm log. Please attach them. Created attachment 148885 [details]
cvslog.in
Created attachment 148886 [details]
cvslog.out
Somewhere along the line the original error (weird diff files) disappeared. I think when I reinstalled NB. Since the original project now has no cvs changes, I did "show changes" on another project that does. I also had to censor a lot of confidential information so excuse me if the log looks a bit weird. i find it hard to orient in the logs since you probably replaced all file names with <snip> but this looks suspicious:
> E cvs update: conflict: removed `src/com/<snip>
Check the original log and get the file that is printed on the line. It may be you have a tree conflict which NetBeans CVS support has problems with. May be someone modified it in the repository while you deleted it locally (or maybe vice-versa). Can you leave that file as it is in the repository? Could you even make a fresh cvs checkout, update and then do cvs -> show changes with the deleted cvscache?
I guess by replace regex was too aggressive. That line should have been:
> E cvs update: conflict: removed `src/com/<snip> was modified by second party
The file pointed to by snip doesn't exist locally. It only exists in the CVS.
Yes, I guess someone modified it in the repository while I deleted it locally. I did a fresh checkout and got the repo version without any errors/weirdness whatsoever, which is what I'll continue to work with. (copying of the changed files from the new to the checked-out projrect takes some work, but luckily not much in this case. It could've been many orders of magnitude worse) (In reply to Zom-B from comment #21) > Yes, I guess someone modified it in the repository while I deleted it > locally. Then recreate the file locally (so it exists again on your side), do the update (so you merge others' changes) and then delete it. The problem you're experiencing is called a tree conflict, always quite difficult to solve and can mean there are some problems in communication in your team. Another developer modified the file while you deleted it without knowing of one another. So it's always better to wait for the other changes finished before continuing with yours. So in your case it's better to revert the local deletion, bring your teammate's changes and then delete the file again. |