[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] Potential Subclipse Bug with Committing New Resources

From: <nebula_at_planet-nebula.com>
Date: 2006-04-23 17:03:25 CEST

I seem to have run into a possible bug while using Subclipse. Just to get
things started, I'm running Windows XP SP2 with Eclipse v3.1.2 and Subclipse
v1.0.1 (JavaSVN), which is synchronizing with a Subversion Repository v1.2.3
over WebDAV (Apache v2.0.55).

What happens is that sometimes, when I go to commit, it takes
Eclipse/Subclipse two revisions on the server to complete the command, when (I
think) it should only take one. If I create a new package and class, they are
both unversioned. I then manually add (through Subclipse) the package and
class to version control, and then proceed with a commit. It takes two
commits (one for the package directory, and another for the class file
itself). Both commits have the same commit message.

Steps to reproduce:

0. Create a new Eclipse project, and synchronize it with an active SVN
repository somewhere.
1. Create a new package and class. Adding any code to the class is
unnecessary.
2. Right click either the file or the package, and add it to version control
through the Team menu.
3. Right click on the class file, and commit. This step generates two
commits, one for the package, and one for the class. The Commit dialog in
this step only shows the .java file in the resources-to-commit view, even
though the directory needs to be committed as well. Bringing up the commit
dialog by right clicking on the package (instead of the class file) results in
the intended one commit. The intended behavior can also be achieved by
committing with TortoiseSVN instead of through Subclipse.

I'd be surprised if this was expected behavior, but I figured I should still
send the mailing list an email, just to be safe. This bug occurs whether
Subclipse is using JavaSVN or JavaHL libraries. Hope this helps!

-- Nebula

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Sun Apr 23 17:15:27 2006

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.