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: | Merge sometimes doesn't find changed files | ||
---|---|---|---|
Product: | versioncontrol | Reporter: | twolf2919 <twolf2919> |
Component: | CVS | Assignee: | issues@versioncontrol <issues> |
Status: | REOPENED --- | ||
Severity: | blocker | CC: | hmichel, mmirilovic |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
twolf2919
2009-05-14 23:35:39 UTC
After spending a long time trying to reproduce your problem I finally succeeded. The basic reason for this to happen is indeed the missing 'T1' tag on that file. Merge command in Netbeans operates similarly to a command line cvs client, it passes T1 and T2 as arguments (with -j option) to a cvs update command. Since the file is not tagged with T1, the 'cvs update' won't succeed and in my case response with: 'file XXX exists, but has been added in revision T2'. So the way you are trying will not work even in a command line (could you check it yourself? try 'cvs update -j T1 -j T2 FILENAME'). So if there's no way even for the command line client to handle this, I think we should look for a workaround and rather consider this as an ENHANCEMENT than a BUG. About Eclipse: I tried the same scenario in Eclipse and there's a slight difference. Eclipse seems to use two ways to accomplish this. In the merge dialog you can select either 'Preview the merge in the synchronize view' or 'Perform the merge into the local workspace'. When I select the latter, it results in the same problem - the file is not merged and the command responds with 'file XXX exists, but has been added in revision T2' The first option (Preview the merge in the synchronize view) opens a synchronize view and allows you to merge manually. It does not seem to perform merge but detects its state in B1 and B2 and lets you merge the changes by yourself. Back to Netbeans: There's a way to detect unmerged files in IDE. If you look in the Output window, there's a tab with all cvs commands output. If you perform a merge, the tab is filled with merge command's messages. If you spotted any messages as: 'cvs update: file XXX exists, but has been added in revision T1' you can probably find those unmerged files. Then you need to identify the last merged revision (e.g. from the Search history) and fill this as a start revision in the merge dialog. I understand this is far to difficult to use, but currently i don't see any other way. Please, could you: 1) check if the file can be merged with the command line client - 'cvs update -j T1 -j T2 file' - and report back the output of the command 2) look at the output tab in IDE (the one with cvs messages) and check if there's a message as 'file XXX exists, but has been added ...' or any other messages related to the file 3) could you please tell, what option in the merge dialog you selected in Eclipse? 4) Do you have any idea, why the file has lost the original tag? Maybe there's an issue with the tag command in Netbeans and the file wasn't tagged the last time you merged. I would see this as a more serious than the failing merge which can't be performed even with the command line client. 5) Could you please check where the file was originally created? (TRUNK, BRANCH1, BRANCH2, ...) Thenks Any update on this? Without requested information for long time - INVALID. We can't do anything in this case. Reporter, please add requested information and reopen issue. Thanks in advance. @ppis, Sorry I didn't respond to ovrabec's request for verification. Yes, it's exactly what he determined. I am changing this bug into an Enhancement bug so that an improvement can be considered in the future. |