在SVN COM preSS的可执行文件? [英] compress binaries in SVN?

查看:99
本文介绍了在SVN COM preSS的可执行文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个脚本,COM preSS和uncom preSS所选目录的二进制文件(和子目录)。
我需要在我提交的文件SVN激活脚本。

I have written a script to compress and uncompress binary files of a selected directory (and the sub-directories). I need to activate the script before I commit files to SVN.


  1. 有没有使用pre-commit钩子来执行脚本的方法吗?如果是这样,我怎么给他的剧本的根目录(所以它会扫描子文件夹和COM preSS)?
    和我应该在钩写执行脚本?

  1. Is there a way to use the pre-commit hook to execute the script? and if so, how do I give to the he script the root directory (so it would scan the sub-folders and compress) ? and what should I write in the hook to execute the script?

我需要做的,当我签出文件同样的事情。我需要执行一个脚本。再次,我需要本地根的路径,而且,也没有POST-CHECK-OUT钩,所以我怎么能执行这个脚本?

The same thing I need to do when I CHECK OUT files. I need to execute a script. Again I need the path of the local root, and also, there is no POST-CHECK-OUT hook, so how can I execute the script?

感谢,

俄德

推荐答案

有没有办法与正常颠覆钩子脚本做到这一点,因为这些都是服务器端的。

There's no way to accomplish this with normal subversion "hook script" as these are all server-side.

Subversion命令行客户端不支持客户端挂钩。你必须编写自己的脚本来包装,例如 SVN更新,然后使用这些脚本,而不是svn命令他们换的。

The subversion command line client does not support client-side hooks. You'll have to write your own scripts to wrap for example svn update and then use those scripts instead of the svn command they wrap.

TortoiseSVN做的,据我所知,支持客户端挂钩。你可能会在运气,如果你使用的。

TortoiseSVN does, as far as I know, support client side hooks. You may be in luck if you're using that.

为什么,出于好奇,你需要做这个摆在首位?

Why, out of curiosity, do you need to do this in the first place?

这篇关于在SVN COM preSS的可执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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