来自svn背景的我在Perforce中应该注意什么?

发布于 2024-09-29 07:17:43 字数 74 浏览 5 评论 0原文

哪些概念等必然与 svn 不同,可能会给我带来问题?

(我对女巫最好不感兴趣,因为我不能决定我的新雇主使用什么系统)

What concepts etc in perforce are different from svn in ways that are likely to give me problems?

(I am not interested in witch is best, as it not for me to decide what system my new employer uses)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

弥枳 2024-10-06 07:17:43

我想到的几点是

  • svn 在其 .svn 中维护一个副本(因此有点慢)来执行本地操作,如 svn st、info 等,但 perforce 需要为每个操作连接到服务器。
  • svn checkout 与 perforce 不一样。您可能必须定义工作区和视图才能进行结帐。
  • 在编辑文件之前,您需要告诉 perforce 您将要编辑该文件。
  • 不要在没有网络(连接到 p4 服务器)的情况下编辑任何 perforce 文件,当您尝试提交文件时,您的服务器可能无法识别这些更改。
  • Perforce 具有更好的合并/分支功能。
  • 你的 perforce 中只能有一个工作区,这与 svn 中的多个工作副本不同。

Few points which comes to my mind

  • svn maintains a copy in its .svn (hence a little slower) to do local operations like svn st, info, etc. but perforce would require a connecion to the server for every operation.
  • svn checkout is not the same in perforce. You might have to define a workspace and view to do a checkout.
  • You need to tell perforce that you are going to edit a file before editing it.
  • Do not edit any perforce file without network(connection to p4 server) your server might not recognize these changes when you try to commit it.
  • Perforce has better merge/branching capabilities.
  • You can have only one workspace in your perforce which is different from having multiple working copy in svn.
赠我空喜 2024-10-06 07:17:43

自从我使用 perforce 以来已经有一段时间了,但我记得的一件事是在编辑文件之前必须“签出”文件。这可能是我工作的公司的一个配置选项...但是您的工作区中拥有所有文件,但它们在您签出之前都是只读的。

大多数 IDE 都有一个 P4 插件,当您开始编辑文件时,它可能会为您执行此操作...对于 Java,我知道 Eclipse 和 IntelliJ 插件可以执行此操作。

Perforce 有一个很好的更改列表概念,它确实让您可以自由地选择您现在想要签入的内容。

他们的命令行和 UI 客户端非常棒。

就个人而言,它是我使用过的更令人愉快的版本控制系统之一。

It's been a while since I used perforce, but one thing I remember is having to "check out" files before editing them. This may have been a config option at the company I worked at... but you have all the files in your workspace but they are read-only until you check them out.

Most IDEs have a plugin for P4 that probably does this for you when you start to edit the file... for Java, I know that the Eclipse and IntelliJ plugins did.

Perforce has a nice concept of change lists which really gives you the freedom to pick and choose what you want to check in right now.

Their command line and UI clients are awesome.

On a personal note, it was one of the more pleasant version control systems I have used.

飞烟轻若梦 2024-10-06 07:17:43

Perforce 服务器可以在客户端上读取和写入任意文件,从而执行任意代码。Perforce 配置全部在服务器端,因此服务器可以简单地处理客户端计算机的整个硬盘作为存储库,并做任何它想做的事。

除非在 SELinux 沙箱中,否则切勿运行 Perforce。

记住:Perforce 客户端是服务器的傀儡。您必须使用操作系统的安全功能来防止它执行您不希望它执行的操作。 始终将 Perforce 客户端视为敌对。

这是 CVE-2007 -0100。请注意完整性、机密性和可用性方面的得分 10.0(可能是最差的)。

A Perforce server can read and write arbitrary files on the client, and thus execute arbitrary code. The Perforce configuration is all server-side, so the server could simply treat the entire hard disc of the clients' computer as a repository, and do whatever it wanted to it.

Never run Perforce except in an SELinux sandbox.

Remember: The Perforce client is the server's puppet. You must use the operating system's security features to prevent it from doing something you don't want it to do. ALWAYS treat the Perforce client as hostile.

This is CVE-2007-0100. Note the score of 10.0 -- the worst possible -- for integrity, confidentiality, and availability.

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