CVS is commiting files which are identical to the current version

Hello,

if I commit a file under CVS control, which is identical to the current version in the repository (checked with "Check File Status"), the file is actually commited to CVS and a new version is created.

This is annoying because after a rebuild the gui designer files are also recreated (gui designer is generating GUI into the source file) and these files appear in the commit dialog.

Is there any way to change this behaviour ?

Greetings

Wolfgang Zolleis

5 comments
Comment actions Permalink

Hello Wolfgang,

WZ> if I commit a file under CVS control, which is identical to the
WZ> current version in the repository (checked with "Check File
WZ> Status"), the file is actually commited to CVS and a new version is
WZ> created.
WZ>
WZ> This is annoying because after a rebuild the gui designer files are
WZ> also recreated (gui designer is generating GUI into the source file)
WZ> and these files appear in the commit dialog.
WZ>
WZ> Is there any way to change this behaviour ?

Which version of IDEA does this happen with? In version 6.0.2, the GUI Designer
compilation does not touch the source file if the form compilation didn't
introduce any changes.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hello Dmitry,

I have IntelliJ 6.0.2, Build 6107. My JAVA source files are recreated and touched if I do a Rebuild of my project.
This behaviour occurs under Linux and Windows XP.

I have attached a screenshot after doing a rebuild.
The form file is black (=unchanged), the corresponding java file is blue (=changed).
The content of the files is identical to the content of the last revision in the CVS (= up to date).

Greetings

Wolfgang

Message was edited by:
Wolfgang Zolleis



Attachment(s):
Bildschirmphoto1.png
0
Comment actions Permalink

Hello Dmitry,

I have the trace of the cvs command for the commit of my files.
It containts the -f parameter, which means that a new version is created even if the content. is equal.
e.g.

C:\dev\IdeaProjects\RemoteManager\src\applications cvs commit *-f *-R -m "no message" RemoteManager/src/de/igel/rm/gui/dlg/DatelistPanel.java
/usr2/cvsroot/applications/RemoteManager/src/de/igel/rm/gui/dlg/DatelistPanel.java,v <-- RemoteManager/src/de/igel/rm/gui/dlg/DatelistPanel.java
new revision: 1.5; previous revision: 1.4
Command finished ( 0 )

Could this option be changed ?

Greetings
Wolfgang

0
Comment actions Permalink

Hello Wolfgang,

WZ> I have IntelliJ 6.0.2, Build 6107. My JAVA source files are
WZ> recreated and touched if I do a Rebuild of my project..
WZ>
WZ> I have attached a screenshot after doing a rebuild.
WZ> The form file is black (=unchanged), the corresponding java file is
WZ> blue (=changed).
WZ> The content of the files is identical to the content of the last
WZ> revision in the CVS (= up to date).

Thanks for your feedback! Indeed, the GUI Designer did touch the Java source
files on project rebuild. This problem will be fixed in IntelliJ IDEA 6.0.3.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hello Dmitry,

thank you for your reply.
Since my problem with the gui designer files is solved with the next version, I can live with the situation.

I have just some further questions:
When will the version 6.0.3 be released ?
Why don't you check the status of the file before commiting it ?
Why do you force the checkin ?

Greetings

Wolfgang

0

Please sign in to leave a comment.