使用 Perforce 而不是 Subversion 有什么好处? [英] What are the benefits of using Perforce instead of Subversion?

查看:67
本文介绍了使用 Perforce 而不是 Subversion 有什么好处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的团队已经使用 SVN 几年了.我们现在可以选择切换到 Perforce.

My team has been using SVN for a few years. We now have the option of switching to Perforce.

进行这样的转换有什么好处(和缺陷)?

What would be the benefits (and pitfalls) of making such a switch?

推荐答案

  • P4 在服务器上跟踪您的工作副本.这意味着

    • P4 keeps track of your working copy on the server. This means that

      1. 处理大型工作副本的速度要快得多.我曾经有一个大型 SVN 项目,一个简单的更新需要 15 分钟,因为它必须创建本地工作副本(数千个文件夹)的树.文件访问速度慢.P4 将有关工作副本的信息存储在数据库中,因此任何操作都几乎是即时的.
      2. 如果你弄乱你的文件而不告诉服务器,你就有麻烦了!您不能只删除一个文件 - 您必须使用 P4 客户端删除一个文件,以便服务器知道.请注意,如果您在本地删除文件,则在后续更新时不会再次下载该文件,因为服务器认为您已经拥有它!当发生很多这样的事情并且我最终严重不同步时,我通常不得不求助于清理我的本地副本并再次下载,这可能很耗时.你必须注意这一点.
      1. Large working copies are processed much faster. I used to have a large SVN project and a simple update took 15 minutes because it had to create a tree of the local working copy (thousands of folders). File access is slow. P4 stores the information about the working copy in the database, so any operations were always near-instantaneous.
      2. If you mess around with your files and do not tell the server, you are in trouble! You cannot just delete a file - you have to delete a file with the P4 client so the server knows. Note that if you locally delete a file, it will not be downloaded again on successive updates because the server thinks you already have it! When lots of this happened and I ended up wildly out of sync, I usually had to resort to cleaning out my local copy and downloading it again, which could be time-consuming. You must be careful about this.

    • Explorer shell 扩展客户端(想想 TortoiseSVN)很糟糕,完全无法使用.
    • 有两个 GUI 客户端应用程序可提供最佳功能:P4Win 和 P4V,其中 P4V 更新且更易于使用,但功能并不丰富.
    • 有 Visual Studio 和 Eclipse 插件,虽然它们没有很多高级功能,但效果相对较好.
    • 一般来说,P4 提供的功能比 SVN 少得多,有时甚至令人困惑.
    • 工作副本定义很好而且很灵活.我相信 P4 在这方面优于 SVN:您可以为工作副本文件夹定义掩码并创建各种奇异的树,因此您可以只将想要的内容下载到您想要的位置,而无需手动进行多次结帐.当我在服务器上有数千兆字节的东西并且只想要它的一个特定子集时,这非常方便.我在类似的情况下使用了 SVN,但要麻烦得多.
    • 在 P4 下分支是……奇怪的.分支集和不同种类的分支以及令人困惑的 UI.不幸的是,我不记得有多少关于这方面的细节.
    • 除此之外,它非常标准.

      Other than that, it's pretty standard.

      我建议您保留 SVN,除非您处理庞大的代码库或讨厌 .svn 文件夹在您的文件系统中乱扔垃圾.SVN+TortoiseSVN 在大多数情况下要舒适得多.

      I recommend you keep SVN unless you deal with huge codebases or hate the .svn folders littering up your filesystem. SVN+TortoiseSVN is far more confortable for most situations.

      这篇关于使用 Perforce 而不是 Subversion 有什么好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆