Checking out local copy in One Drive folder

97 views
Skip to first unread message

Sandy Pyke

unread,
Apr 26, 2018, 12:00:03 PM4/26/18
to TortoiseSVN
Hello all,

I've been using Turtoise SVN for a few years now with good succes. I've recently tried to check out a local copy of a repository into a One Drive folder and while this works I am getting some strange behavior that I can't figure out. Maybe someone here can explain what is happening...

So I can check out the repository just fine and the directory tree is created. Then if I right click on the repository I see the following context menu:



I notice a few things here:

   - The folder icon does not show the SVN status. If I check out in a non One Drive folder this works fine, but in the One Drive folder I don't see the overlays
   - The context menu does not seem to be recognizing the folder as a local working copy.
   - If I click on SVN Checkout... I get a warning that the folder is not empty but if I proceed with the checkout the folder is updated to the latest revision:



So I've done a little more digging and found that One Drive is only available as a 32 bit app. Given that I am running on Windows 10 x64 and that I have the 64 bit version of TurtoiseSVN installed (1.10) I thought this might be the issue. Tried installing the 32 bit version but that refuses to install. Noticed the suggestion to install the VC_redist.x86.exe file so I did, rebooted and still getting the same behavior. At a bit of a loss here on how to get this to work...

Reason I am doing this is that I have a number of projects that are not under version control, so I would like all my projects at least backed up to the cloud, but then some projects are under version control, so those create folders in my directory tree that are local working copies of the repository.

One possible solution here would be to create these repos elsewhere in my file system and then do an mklink to create a shortcut in my One Drive folder structure to these other folders, but I'll have to do this for all folders under revision control which will be a bit of a pain...

Looking for any feedback / suggestions you have to offer on how to get this to work. Thanks!
Auto Generated Inline Image 1
Auto Generated Inline Image 2

Stefan

unread,
Apr 26, 2018, 1:41:49 PM4/26/18
to TortoiseSVN
On recent Windows 10 versions, OneDrive does not keep the file contents locally but offloads those to the cloud and only restores them locally if necessary. So while the files appear to be there, they are in fact not available.
So TSVN and other svn clients can't see the files necessary to determine that a folder is a working copy.

So avoid that problem, configure OneDrive to always keep all files locally.

Reply all
Reply to author
Forward
0 new messages