如何在SVN中进行独家结帐? [英] How do I do an exclusive checkout in SVN?

查看:85
本文介绍了如何在SVN中进行独家结帐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种从SVN进行独家结帐的方法.

I'm looking for a way to make an exclusive checkout from SVN.

  1. 是否有一种在签出文件时自动锁定文件的方法?

  1. Is there a way to automatically lock a file when it's being checked out ?

如果一个用户进行独占签出,然后另一用户对同一个文件进行签出,我该如何向第二个用户生成某种通知或即时消息,表明该文件已被锁定?

If one user makes an exclusive checkout, and then another user makes a checkout to the same file, how do I generate some sort of notification or an instant message to the 2nd user that the file is locked?

推荐答案

如果我了解您的后续帖子,我认为您真正想要的是确保人们了解锁.我正在想象一个情况,用户A和B已经已经签出了一个jpeg.用户A现在将其锁定,并且您要确保用户B知道,这样他(她)就不会开始编辑jpeg并浪费时间和精力.

If I understand your follow-up posts, what I think you really want is to make sure that people know about locks. I'm imagining a case where users A and B have already checked out a jpeg. User A now locks it, and you want to make sure that user B knows, so that he or she doesn't begin editing the jpeg and wasting time and effort.

如果是正确的话,我建议您做两件事:第一,也是最重要的,沟通(技术性不强,但如果使用得当,功能非常强大);其次,您可以查看svnpost-lock存储库挂钩.您可以使用它来在有人将文件锁定时发送电子邮件.

If that's correct, I recommend two things: first and foremost, communication (not very technical, but very powerful when used consistently); second, you might take a look at the post-lock repository hook for svn. You can use that to have emails sent when someone puts a lock on a file.

来自

post-lock挂钩在锁定一个或多个路径后运行.通常用于发送有关锁定事件的电子邮件通知.

The post-lock hook runs after one or more paths have been locked. It is typically used to send email notification of the lock event.

这篇关于如何在SVN中进行独家结帐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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