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

[Subclipse-users] Bug? "Entry already exists"

From: Arpe, Kevin C <Kevin.C.Arpe_at_jpmorgan.com>
Date: Thu, 14 Apr 2011 11:56:36 +0800


I am using Subclipse 1.6.17 with Eclipse Helios SR2 (20110301-1815).
I ran "Install Software Updates" before doing this test again.

Here is my scenario that fails. I can reproduce everytime.

In an SVN project in Eclipse:
1) Add a new file (anything is OK).
2) Team -> Commit...
3) Leave the message blank
4) Commit will fail because my repository has a hook to prevent empty messages.

add -N C:\eclipse\workspace\JPM-AS400\meta
    A C:/eclipse/workspace/JPM-AS400/meta
add -N C:\eclipse\workspace\JPM-AS400\meta\jar-export-for-ctstudio.jardesc
    A C:/eclipse/workspace/JPM-AS400/meta/jar-export-for-ctstudio.jardesc
commit -m "" C:/eclipse/workspace/JPM-AS400/.classpath C:/eclipse/workspace/JPM-AS400/meta C:/eclipse/workspace/JPM-AS400/meta/jar-export-for-ctstudio.jardesc
    Sending C:/eclipse/workspace/JPM-AS400/.classpath
    Adding C:/eclipse/workspace/JPM-AS400/meta
    Adding C:/eclipse/workspace/JPM-AS400/meta/jar-export-for-ctstudio.jardesc
    Transmitting file data ...
    A repository hook failed
svn: Commit failed (details follow):
svn: Commit blocked by pre-commit hook (exit code 1) with output:
Empty comments are not allowed.

5) Try the commit again. Team -> Commit...
6) Enter a message
7) It fails with a new error message.

add -N C:\eclipse\workspace\JPM-AS400\meta\jar-export-for-ctstudio.jardesc
    Entry already exists
svn: 'C:\eclipse\workspace\JPM-AS400\meta\jar-export-for-ctstudio.jardesc' is already under version control

When I run svn status at the command line, the files are already added. Makes sense. I need to run:
svn delete --force --keep-local <added-files>

Then I try commit again (with a message) and it works.

Step 7 seems like a bug, or I am using Subclipse wrong.

Can you please advise?


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2011-04-14 13:33:44 CEST

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.