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

Re: Help: deleting package roots in eclipse broke svn

From: Brad Cox <bcox_at_virtualschool.edu>
Date: 2004-04-11 03:29:09 CEST

Nope, didn't work

cd workspace/jwaa
svn up
Working copy src/edu not locked

The problem isn't how to recover src/edu and src/edu/virtualschool
per se (they're empty except for numerous subdirectories, which still
contain the needed files). The problem is how to get svn to recognize
the subdirectories.

I know; the relationship between Java packages and Unix directories
is confusing, especially with IDE's like eclipse in the middle, doing
their level best to obscure things.

Perhaps this will make it clear.

cd workspace/jwaa
ls -Ra src
. .. edu log4j.properties META-INF .svn

. .. virtualschool

. .. jwaa

. GenericServlet.java StringUtil.java
.. GenericURI.java .svn
AccountAbstraction.java IgnorableFault.java swing

...and so forth

Note src and src/edu/virtuascool/jwaa have .svn directories, src/edu
and src/edu/virtualschool do not.


At 5:47 PM -0500 4/10/04, Ben Collins-Sussman wrote:
>Brad Cox wrote:
>>I've a number of Java Eclipse projects organized in the usual fashion:
>> workspace
>> project1
>> src
>> edu
>> virtualschool
>> ...
>> project2
>> src
>> edu
>> virtualschool
>> ...
>>Each project is checked into subversion in the usual fashion, as
>>separate directories.
>>Problem is, the edu and virtualschool package directories showed as
>>empty in eclipse so I deleted them in the package browser, not
>>thinking of the fact that subversion sees them as directories, not
>>java packages, and expects to find a .svn directory there. So
>>checkins fail with Working copy ...workspace/project1/src/edu not
>>locked errors.
>>How to recover from this self-inflicted wound?
>I'm not sure I understand. You deleted directories that are under
>version control, and want them to come back? Just run 'svn up'.

Brad J. Cox, PhD, 703 361 4751, http://virtualschool.edu
        http://virtualschool/ale Action Learning Environment
http://virtualschool.edu/mybank Digital Rights Management System
    http://virtualschool.edu/jco Java Cryptographic Objects (JCO)
   http://virtualschool.edu/jwaa Java Web Application Architecture (JWAA)
  http://virtualschool.edu/java+ Java Preprocessor (Java+)
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Apr 11 03:29:28 2004

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

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