开发者

SVN ignore problem in OS X Lion

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

 svn propedit 开发者_StackOverflowsvn: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


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 :-)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜