FogBugz、WebSVN 和 Cygwin - 未生成差异
我可以理解我要问的问题有点具体而且很小,但如果你能提供一些帮助,你实际上可能会让我保留一些头发!
我最初在 FogBugz 技术支持页面上发布了查询,但是没有太多的快乐。
基本上我使用 webSVN 作为存储库浏览器来为 FogBugz 提供日志和差异功能。 WebSVN 允许我查看日志,但不显示任何差异信息。 我仔细研究了 webSVN 的 PHP,并确定 websvn 调用 svn 实用程序以获取文件内容并使用 sed 和 enscript 对其进行格式化,最终生成的文件是空白的。
我已将实用程序调用分解为更小的语句,并使用命令行手动测试,在合并 sed 语句之前,一切似乎都很好。 还有其他人遇到过这个问题,或者知道解决方案吗? 下面的语句是从 PHP 内部调用的,并且是生成空白文件的地方。
""c:\program files\subversion\bin\svn" --non-interactive --config-dir /tmp cat "file:///E:/svn/Users/mwo/test-4.txt"@36 | "c:\cygwin\bin\enscript" --language=html -o - | "c:\cygwin\bin\sed" -n "1,/^<\/PRE.$/,/^ C:\Inetpub\wwwroot\websvn\temp\150.tmp"
I can appreciate what I'm about to ask is a bit specific and a small niche but if you could provide some help you might actually let me keep some of my hair!
I originally posted the query over on the FogBugz technical support page, but haven't had much joy.
Basically I am using webSVN as a repository browser to provider log and diff functionality for FogBugz. WebSVN is allowing me to view logs but not showing any information for diffs. I have gone through the PHP of webSVN with a fine toothed comb and established that where websvn is making a call to the svn utility, to obtain the file contents and format it using sed and enscript, the file ultimately being generated is blank.
I have broken down the utility calls into smaller statements and tested manually using the command line and all seemed to be well until I incorporate the sed statement. Has anyone else had this issue, or know of a resolution? The statement below is being called from within PHP and is the place where the blank file is being generated.
""c:\program files\subversion\bin\svn" --non-interactive --config-dir /tmp cat "file:///E:/svn/Users/mwo/test-4.txt"@36 | "c:\cygwin\bin\enscript" --language=html -o - | "c:\cygwin\bin\sed" -n "1,/^<\/PRE.$/,/^ C:\Inetpub\wwwroot\websvn\temp\150.tmp"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嘿,大家好,对于任何遇到这个问题的人,我已经在此处发布了答案 。
以防万一这被从fogbugz的支持论坛中删除,我基本上必须给每个人完全访问C:\ Inetpub \ wwwroot \ websvn \ Temp \,现在一切都很好!
Hey Guys for anyone stuck with this one I have posted the answer here .
Just in case this gets removed from the support forum over at fogbugz, I basically had to give everyone full access to C:\Inetpub\wwwroot\websvn\Temp\ and all is now well!