Perforce 中用于 Ruby on Rails 项目的工具

发布于 2024-08-08 21:40:32 字数 257 浏览 3 评论 0原文

我们正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

尐籹人 2024-08-15 21:40:32

“编辑前检查”是 Perforce 的主导范例,但不是唯一的使用方式。 Perforce 有一篇关于断开工作的好文章,这听起来更接近您的需求:

  1. 设置您的 Perforce具有“allwrite”选项的工作区
  2. 允许 RoR 对任何它想要的文件进行任何更改
  3. 通过标记您添加、删除和修改的文件来更新工作区的服务器视图。您可以在 p4v 中使用“协调离线工作”,或运行“断开连接的工作”一文中建议的几个 shell 命令。

"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:

  1. Set up your Perforce workspace with the "allwrite" option
  2. Allow RoR to make any changes to any files it wants
  3. Update the server's view of your workspace by marking the files you added, deleted, and modified. You can use "Reconcile offline work" in p4v, or run several shell commands suggested in the "Working Disconnected" article.
離殇 2024-08-15 21:40:32

我使用 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.

高跟鞋的旋律 2024-08-15 21:40:32

不确定您在问什么:在 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,

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文