TortoiseSVN 升级到 Windows 8 后无法识别 svn 文件夹

编程入门 行业动态 更新时间:2024-10-28 04:17:40
本文介绍了TortoiseSVN 升级到 Windows 8 后无法识别 svn 文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我已将我的计算机从 Windows XP 升级到 Windows 8,并选择保留我的所有文件和设置.升级后我安装了 TortoiseSVN 版本 1.710,这是我还在 XP 上使用的版本.但现在它似乎不再识别 SVN 文件夹.在我的文件夹上,我没有覆盖图标,当我右键单击时,我只得到结帐"选项,就好像文件夹是空的或不包含任何版本控制一样.当我在资源管理器中选择显示隐藏文件"时,我可以看到 _svn 文件夹肯定在那里.我确实注意到它被标记为只读",但删除它并不能解决问题.
有没有人知道为什么 Tortoise 没有检测到 _svn 文件夹?

I have upgraded my computer from Windows XP to Windows 8 and opted to keep all my files and settings. After the upgrade I installed TortoiseSVN version 1.710, which was the version that I also used while still on XP. But now it no longer seems to recognize the SVN folders. On my folders I have no overlay icons, and when I right-click I only get the 'checkout' option as if the folder was empty or does not contain any version control. When I select 'Show hidden files' in explorer I can see that the _svn folder is definitely there. I do notice it is marked 'read only' but removing that does not solve the issue.
Does anyone has an idea as to why Tortoise does not detect the _svn folder ?

推荐答案

答案就在问题中.从版本 1.6 Tortoise 不再识别 _svn 文件夹,而是使用 .svn 文件夹.在我的 Windows XP 机器上,我可能曾经选择安装允许使用 _svn 文件夹的hack",即使我升级到 1.7,它也保持这种状态.
由于升级到 Windows 8 保留了文件但需要全新安装所有软件,因此使用 _svn 文件夹的选项丢失了.所以我必须找到一个解决方案将我所有的 _svn 文件夹重命名为 .svn.幸运的是,Windows 8 附带了 Powershell 3.0,这使得这很容易.
只需打开 Powershell 窗口,将目录更改为文档"文件夹并键入:

The answer is in the question. From version 1.6 Tortoise no longer recognizes the _svn folder but uses .svn folders instead. On my Windows XP machine I probably once opted to install the 'hack' that allowed for using the _svn folders and it stayed that way even when I upgraded to 1.7.
Since the upgrade to Windows 8 kept the files but required a fresh install of all software, the option to use _svn folders was lost. So I had to find a solution to rename all my _svn folders to .svn. Fortunately windows 8 comes with Powershell 3.0 which makes this easy.
Just open the Powershell window, change your directory to the 'Documents' folder and type:

Get-ChildItem _svn -recurse -force | foreach {rename-item $_ $_.Name.Replace("_",".")}

这将重命名所有_svn文件夹,一切都解决了.

This will rename all _svn folders, and all is solved.

这篇关于TortoiseSVN 升级到 Windows 8 后无法识别 svn 文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-25 18:31:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1120982.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:升级到   文件夹   无法识别   TortoiseSVN   svn

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!