SVN忽略OS X Lion中的问题 [英] SVN ignore problem in OS X Lion

查看:104
本文介绍了SVN忽略OS X Lion中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装Lion之前,当我尝试忽略svn上的某些内容时,我只键入了以下命令:

Before installing Lion, when I tried to ignore something on my svn, I just typed the following command:

 svn propedit svn:ignore .

这将使用选定的编辑器为当前目录打开一个临时文件,我可以在其中写入我的模式,而svn会将其忽略.

This opened a temporary file for the current directory with the selected editor and I could write there my patterns, which where ignored by svn.

在安装Lion之后,键入此命令时,会出现以下错误:The document svn-prop.tmp could not be opened. The file doesn’t exist.

After I installed Lion, when I type this command the following error appears: The document "svn-prop.tmp" could not be opened. The file doesn’t exist.

其他人之前是否遇到过此错误? (我尝试使用Google谷歌搜索,但未找到任何解决方案).

Did anybody else met this error before? (I tried googling, but I didn't find any solution).

SVN_EDITOR =/应用程序/TextEdit.app/Contents/MacOS/TextEdit

SVN_EDITOR=/Applications/TextEdit.app/Contents/MacOS/TextEdit

推荐答案

似乎使用Lion不再可能在命令行上使用TextEdit来打开文件,而将文件名作为参数.

It seems that with Lion it is no more possible to open a file with TextEdit on the command line giving the file name as argument.

一种解决方法是使用open

export SVN_EDITOR='open -e -W -n '

  • -e指示使用TextEdit打开(如果要指定其他应用程序,请使用-a)
  • -W告诉open等待退出TextEdit.如果未指定,则svn propedit将在文件编辑之前读取文件,然后返回并告知未进行任何更改.
  • -n告诉您打开一个新的TextEdit实例,即使已经打开了另一个实例.一方面,它将避免您不得不退出打开的编辑器,而另一方面,如果没有该选项,它就无法工作:-)
    • -e tells to open with TextEdit (use -a if you want to specify a different application)
    • -W tells open to wait for TextEdit to quit. If not specified svn propedit will read the file before it's edited and return telling the no changes were done.
    • -n tells to open a new instance of TextEdit even if there is another one already open. On one hand it will avoid that you have to quit an open editor and on the other hand it was not working without the option :-)
    • 这篇关于SVN忽略OS X Lion中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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