SVN ignore problem in OS X Lion

风格不统一 提交于 2019-12-22 18:29:13

问题


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

 svn propedit svn:ignore .

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.

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.

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


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


回答1:


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.

A workaround is to use open

export SVN_EDITOR='open -e -W -n '
  • -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 :-)


来源:https://stackoverflow.com/questions/7384717/svn-ignore-problem-in-os-x-lion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!