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

RE: Re: 'Import' a Working Copy?

From: Scott Pritchett <scott.pritchett_at_amtrak.co.uk>
Date: 2006-06-08 11:56:35 CEST

You might try Syncback, I use this to move my data back and forth from work to home, it can backup or Syncronise folders, and it's free too.

You can 'filter' directories, so I ignore .svn dirs.

Scott

-----Original Message-----
From: news [mailto:news@sea.gmane.org]On Behalf Of Raterus
Sent: 07 June 2006 22:08
To: users@tortoisesvn.tigris.org
Subject: Re: 'Import' a Working Copy?

"Andy Levy" <andy.levy@gmail.com> wrote in message news:b26be6d90606071311we77dd7and077f21035ef4725@mail.gmail.com...
> On 6/7/06, Raterus <raterus@hotmail.com> wrote:
>> Hello,
>>
>> I've performed a CheckOut from a public SVN repository and now have a local working copy. I'd like to turn around and import this into my local repository, but it appears TortoiseSVN hides that sub-menu option. Is there any way to do this? I don't really understand why you wouldn't be able to do this.
>
> A working copy is directly linked to the URL it was checked out from -
> it's a one to one relationship. So you effectively can't check out
> from one place, then check that same WC into or import to another.
>
> If you want to have a local working copy so that updates for your
> vendor branch don't require a full checkout each time, the following
> steps may work (haven't done it myself):
>
> 1) Initial Checkout from vendor's repository
> 2) Export WC to another directory
> 3) In-place import [1] the resulting files into your repository
>
> When you update from the vendor, perform an update at step 1 above,
> export, and then a commit from the directory in step 3 (instead of an
> import).
>
> Pay careful attention to the vendor branch documentation from earlier
> where it noted that you will need to make sure you remove files that
> were deleted in the vendor's repository.
>
> [1] http://subversion.tigris.org/faq.html#in-place-import

Thank you again Andy, you have been very helpful!

I was able to get the in-place-import done, I understand that process better now.

I was also able to mimic some changes to the vendor distribution, go through the steps you mentioned, and get the changes back to my local repository.

The only thing that concerns me is what you mentioned last, ensuring that files deleted by my vendor are actually deleted in my local copy as well. Are there any foolproof ways to do this? I saw the script documentation on svn_load_dirs.pl, but I was hoping for an easier way, since I doubt this particular vendor product will change that much. I tried deleting the in-place-import contents first, then exploding the changes back to it before a commit, but this unfortunately didn't work. Perhaps though if I kept the .svn directories and deleted everything else. Any other ideas?

--Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu Jun 8 12:00:21 2006

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

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