我可以为 Windows 使 Subversion + TortoiseSVN 不区分大小写吗? [英] Can I make Subversion + TortoiseSVN case-insensitive for Windows?

查看:28
本文介绍了我可以为 Windows 使 Subversion + TortoiseSVN 不区分大小写吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去的几个月里,我一直在使用 Subversion 进行代码控制,通过 TortoiseSVN 与服务器进行交互,总的来说,它进展顺利!但是,有时我的 FoxPro IDE 会在没有警告的情况下更改文件扩展名的大小写,其中program.prg"变为program.PRG")TortoiseSVN 显然认为这意味着第一个文件被删除,被标记为丢失",而第二个名称显示为非版本化",严重破坏了我跟踪文件更改的能力.我知道 Subversion 起源于 *nix 区分大小写的世界,但是,在与 Windows 一起使用时,有什么方法可以控制 Subversion 或 TortoiseSVN 中的这种行为使文件名不区分大小写?

I've been using Subversion for code control with TortoiseSVN to interface with the server for the past few months, and in general it's been going great! However, occasionally my FoxPro IDE will change the case of a file extension without warning where "program.prg" becomes "program.PRG") TortoiseSVN apparently takes this to mean the first file was removed, becoming flagged as "missing" and the second name comes up as "non-versioned", wreaking havoc on my ability to track changes to the file. I understand that Subversion has it origins in the case-sensitive world of *nix but, is there any way to control this behavior in either Subversion or TortoiseSVN to be file name case-insensitive when used with Windows?

推荐答案

不幸的是,Subversion 区分大小写.这是因为 Subversion 中的文件可以在区分大小写的文件系统(例如 *nix)和不区分大小写的文件系统(例如 Windows、Mac)上检出.

Unfortunately, Subversion is case-sensitive. This is due to the fact that files from Subversion can be checked out on both case-sensitive file systems (e.g., *nix) and case-insensitive file systems (e.g., Windows, Mac).

这个预提交钩子脚本 可以帮助您避免签入文件时出现问题.如果它不能解决您的问题,我最好的建议是编写一个小脚本以确保所有扩展名都是小写的,并在您签入/签出之前每次都运行它.这将是 PITA,但也许是您最好的选择.

This pre-commit hook script may help you avoid problems when you check in files. If it doesn't solve your problem, my best suggestion is to write a little script to make sure that all extensions are lowercase and run it every time before you check in/check out. It'll be a PITA, but maybe your best bet.

这篇关于我可以为 Windows 使 Subversion + TortoiseSVN 不区分大小写吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆