在 Windows 上使用 svn_load_dirs.pl 和 ubersvn - 路径 $ENV{HOME} 在哪里?
在 Windows 上将 svn_load_dirs.pl 与 ubersvn 一起使用时 - $ENV{HOME} 的路径应该在哪里。
在 svn_load_dirs.pl 代码中,$ENV{HOME} 未定义。我的系统上也尚未定义它。它应该在哪里?
我的猜测是,这将是 UberSVN 安装的位置:C:\Program Files (x86)\WANdisco\uberSVN
但是 svn_load_dirs.pl 代码会固定在子路径上:$ENV{HOME}/.subversion/config
文件夹/目录路径 .subversion/config 在 C:\Program Files (x86)\WANdisco\uberSVN 下不存在
所以我陷入困境,因为我不认为如果没有正确设置,svn_load_dirs.pl 脚本可以在 Windows 上与 UberSVN 正常工作。
When using svn_load_dirs.pl with ubersvn on Windows - where is the path $ENV{HOME} meant to be.
In the svn_load_dirs.pl code $ENV{HOME} is not defined. It is not already defined on my system either. Where is it meant to be?
My guess is that it would be the location of the UberSVN install: C:\Program Files (x86)\WANdisco\uberSVN
HOWEVER the svn_load_dirs.pl code tacks on a sub path: $ENV{HOME}/.subversion/config
folder/directory path .subversion/config does not exist beneath C:\Program Files (x86)\WANdisco\uberSVN
So I am stuck because I don't think that the svn_load_dirs.pl script can work correctly with UberSVN on Windows without this setup correctly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
$ENV{HOME} 应指当前用户的主目录。在 Windows Vista/7 上,这是“C:\Users\USER-NAME\”,在旧版本的 Windows 上,它是“C:\Documents and Settings\USER-NAME\”
这是一个 perl script 这可能会解决您的问题脚本未获取 $ENV{HOME} 值:
但是,根据此 SVN文档页面,SubVersion的配置位于注册表中,而不是文件系统上。所以我猜脚本需要更新才能在 Windows 上运行:
$ENV{HOME} should refer to the current user's home directory. On Windows Vista/7 this is "C:\Users\USER-NAME\" and on older versions of Windows it would be "C:\Documents and Settings\USER-NAME\"
Here is a perl script which might fix your problem with the script not getting the $ENV{HOME} value:
However, according to this SVN documentation page, the configuration for SubVersion is located in the registry and not on the file system. So I guess the script will need to be updated to work on Windows: