You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Cecil Westerhof <Ce...@decebal.nl> on 2011/02/28 20:25:11 UTC

Better way to create project?

I just put my bin folder in subversion. I am a new user, so maybe I do
not do things in the right way. So I would like to know if there is a
better way to do things.

I moved my bin folder to bin.old.
I created a bin folder in my repository.
I did a checkout of the bin folder.
I moved the files from bin.old to bin.
I removed bin.old.
I did a svn add.
I did a svn commit.

This are quit a few steps. Is there a better way to do this?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Re: Better way to create project?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 28, 2011, at 13:55, Les Mikesell wrote:

> On 2/28/2011 1:29 PM, Ryan Schmidt wrote:
>> 
>> On Feb 28, 2011, at 13:25, Cecil Westerhof wrote:
>> 
>>> I just put my bin folder in subversion. I am a new user, so maybe I do
>>> not do things in the right way. So I would like to know if there is a
>>> better way to do things.
>>> 
>>> I moved my bin folder to bin.old.
>>> I created a bin folder in my repository.
>>> I did a checkout of the bin folder.
>>> I moved the files from bin.old to bin.
>>> I removed bin.old.
>>> I did a svn add.
>>> I did a svn commit.
>>> 
>>> This are quit a few steps. Is there a better way to do this?
>> 
>> You can do an in-place import:
>> 
>> http://subversion.apache.org/faq.html#in-place-import
> 
> Or even easier, just import the top level directory, delete the original, and check the whole thing back out (or rename the original until you are sure it worked).  The in-place approach is for things where you don't want to delete/move the originals at all.

Multiple ways the cat can be skinned, but in-place import is for anytime you want to import the contents of an unversioned directory and turn that directory into a working copy, which is what he wanted to do.





Re: Better way to create project?

Posted by Les Mikesell <le...@gmail.com>.
On 2/28/2011 1:29 PM, Ryan Schmidt wrote:
>
> On Feb 28, 2011, at 13:25, Cecil Westerhof wrote:
>
>> I just put my bin folder in subversion. I am a new user, so maybe I do
>> not do things in the right way. So I would like to know if there is a
>> better way to do things.
>>
>> I moved my bin folder to bin.old.
>> I created a bin folder in my repository.
>> I did a checkout of the bin folder.
>> I moved the files from bin.old to bin.
>> I removed bin.old.
>> I did a svn add.
>> I did a svn commit.
>>
>> This are quit a few steps. Is there a better way to do this?
>
> You can do an in-place import:
>
> http://subversion.apache.org/faq.html#in-place-import

Or even easier, just import the top level directory, delete the 
original, and check the whole thing back out (or rename the original 
until you are sure it worked).  The in-place approach is for things 
where you don't want to delete/move the originals at all.

-- 
   Les Mikesell
    lesmikesell@gmail.com

Re: Better way to create project?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 28, 2011, at 13:25, Cecil Westerhof wrote:

> I just put my bin folder in subversion. I am a new user, so maybe I do
> not do things in the right way. So I would like to know if there is a
> better way to do things.
> 
> I moved my bin folder to bin.old.
> I created a bin folder in my repository.
> I did a checkout of the bin folder.
> I moved the files from bin.old to bin.
> I removed bin.old.
> I did a svn add.
> I did a svn commit.
> 
> This are quit a few steps. Is there a better way to do this?

You can do an in-place import:

http://subversion.apache.org/faq.html#in-place-import