Perforce 中用于 Ruby on Rails 项目的工具
我们正在使用 Perforce 进行源配置管理,我刚刚开始在 Ruby on Rails 中破解一些小东西。由于 Perforce 遵循“修改前签出”范例,并且 RoR 期望所有文件对于各种脚本/内容都是可写的,您是否知道/使用任何帮助程序来使 RoR 与 Perforce 一起工作?我知道我可以随时打开所有文件进行编辑,但是有更优雅的方法吗?
谢谢, 亨里克
we are using Perforce for source configuration management and I have just started to hack some small stuff in Ruby on Rails. As Perforce follows the "check-out before modify" paradigm, and RoR expects to have all files writable for the various script/ stuff, do you know/use any helpers to make RoR work together with Perforce? I know I could just open all files for edit all the time, but is there something more elegant?
Thanks,
Henrik
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
“编辑前检查”是 Perforce 的主导范例,但不是唯一的使用方式。 Perforce 有一篇关于断开工作的好文章,这听起来更接近您的需求:
"Check-out-before-edit" is Perforce's dominant paradigm, but not the only way to use it. Perforce has a good article on Working Disconnected, which sounds closer to your needs:
我使用 git 进行本地 RoR 开发,然后使用 git-p4 与 Perforce 服务器同步。我的工作区文件保持可写,我获得了 git 的所有好处,并且我与团队中使用 Perforce 的其他人保持同步。
I use git for local RoR development, then git-p4 to synchronize with the Perforce server. My workarea files stay writable, I get all the benefits of git, and I stay in sync with others on my team who use Perforce.
不确定您在问什么:在 IDE 中编译之前是否想要检查您的文件 - 或者 - 您想在 RoR 应用程序中执行强制操作吗?
如果是后者,请尝试 P4Ruby:
http://public.perforce.com/guest/tony_smith /perforce/API/Ruby/main/doc/
另一个需要 IDE 支持,这是可能的,但是我无法提供进一步的建议,除非您说明您正在使用哪一个(Visual Studio、CodeGear、记事本?)。
哈特哈,
Not sure what you are asking: do want do check-out your files before you compile in your IDE -or- do you want to do perforce actions in a RoR application?
If it is the latter, try P4Ruby:
http://public.perforce.com/guest/tony_smith/perforce/API/Ruby/main/doc/
The other requires IDE support, which is possible, however I cannot advise further unless you say which one you are using (Visual Studio, CodeGear, Notepad?).
HTH,