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

RE: changing the structure of code in public repo

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Wed, 22 Dec 2010 09:34:10 -0500

> My former team member had put some code in a public repository
> sometime back.Currently I am the sole team member now and need to
> modify the code.
> I am relatively new to subversion and version control systems in
> general..
>
> I can checkout the code using
> svn checkout https://myproject.somepublicrepo.com/svn/trunk/
>
> the source tree structure in repo is
> svn/trunk/src/myproject/One.java
> /Two.java
>
> I thought of changing the package structure of code as follows,
> myproject/
> /build.xml
> /src
> /packageone/NewOne.java
> /packagetwo/Two.java
> /lib
> /images
>
> How should I go about this? should I checkout into a work dir and
> then
> delete all of its contents ,then create the new code structure and
> then commit ?
> Or should I delete the directories from repo first?

No, don't just delete then replace. Use the svn commands to do your refactoring. Basically the svn move command. Once you have done all your refactoring commit your changes.

Have you read the free svn book? Specifically the "basic usage" chapter?

BOb
Received on 2010-12-22 15:34:48 CET

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.