如何判断是否有人下载了最新的代码 [英] How to tell if someone has downloaded the latest code

查看:38
本文介绍了如何判断是否有人下载了最新的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以告诉我(除了在 SVN 日志中...因为它只显示我是否有人提交)最近更新的人,以便我知道他们已经下载了我的代码?我正在专门研究更新(不是在 SVN 日志中显然可以看到的提交).

Is there a way I can tell (other than in the SVN Log...because it only shows me if someone committed) who has updated recently so that I know they have downloaded my code? I'm looking specifically into updates (not commits which can obviously be seen in SVN Log).

推荐答案

当然 - 运行您自己的 Subversion 服务器,打开日志记录并阅读日志.

Sure - run your own subversion server, turn on logging, and read the logs.

编辑:TortoiseSVN 是一个客户端.Subversion 是一个服务器.想象 Tortoise 是一个浏览器(firefox),而 Subversion 是网络服务器(apache 或 IIS).您想要做的是从 Subversion(而不是 SVN 日志,这是完全不同的东西)读取 服务器日志.

Edit: TortoiseSVN is a client. Subversion is a server. Imagine Tortoise being a browser (firefox) and Subversion being the webserver (apache or IIS). What you want to do is read the server logs from Subversion (not the SVN Log, which is something completely different).

我不知道你是谁或如何运行你的 svn 服务器.我通过apache在linux上运行svnserve(所以我说https://而不是svn://),我可以通过apache读取subversion日志.它们看起来像这样:

I don't know who or how you run your svn server. I run svnserve on linux through apache (so I say https:// instead of svn://), and I can read subversion logs through apache. They look like this:

[18/Oct/2009:14:21:41 -0400] xx.xx.xx.xx TLSv1 DHE-RSA-AES256-SHA "OPTIONS /svn/terracidal/root HTTP/1.1" 401
[18/Oct/2009:14:21:42 -0400] xx.xx.xx.xx TLSv1 DHE-RSA-AES256-SHA "OPTIONS /svn/terracidal/root HTTP/1.1" 401
[18/Oct/2009:14:21:45 -0400] xx.xx.xx.xx TLSv1 DHE-RSA-AES256-SHA "OPTIONS /svn/terracidal/root HTTP/1.1" 194
[18/Oct/2009:14:21:45 -0400] xx.xx.xx.xx TLSv1 DHE-RSA-AES256-SHA "PROPFIND /svn/terracidal/root HTTP/1.1" 696

同样,这些是服务器日志,而不是 SVN 日志.我可以破解日志详细信息并查看连接、调试语句、有关服务器运行的内容 - 以及诸如谁在连接和执行操作之类的内容.这才是你关心的.因此,如果您或您的公司运行他们自己的 svn 服务器,请询问管理员他们是否可以提供可供阅读的日志.如果您使用第 3 方,您可能不走运.

Again, these are server logs, not the SVN Log. I can crack up logging verbosity and see connections, debug statements, things about the running of the server - but also things like who's connecting and performing operations. That's what you care about. So if you or your company runs their own svn server, ask the admin if they can make the logs available for reading. If you use a 3rd party, you're probably out of luck.

这篇关于如何判断是否有人下载了最新的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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