在没有本地结账的情况下通过SVNKit提交更改的文件? [英] Committing changed file via SVNKit without local checkout?

查看:176
本文介绍了在没有本地结账的情况下通过SVNKit提交更改的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SVNKit从我们的存储库中获取文件的内容。我想在代码中更改内容并提交更改,而不必先检出文件。我已经在网上搜索过,只找到了需要结账到本地文件系统的解决方案。

I'm using SVNKit to get the contents of a file from our repository. I would like to change that contents within the code and commit the changes back without having to checkout the file first. I searched the web already and only found solutions that require a checkout to the local file system.

有没有人知道这样做的方法?

Does anyone know a way for doing that?

推荐答案

理论上这应该是可行的,但实际上似乎不可能使用SVNKit。

Theoretically this should be feasible, but practical it seems to be impossible using SVNKit.

据我所知,所有签到操作都直接或间接基于 org.tmatesoft.svn.core.wc.SVNCommitItem 此课程要求它的构造函数中的工作副本文件路径。

As far as I can see all check-in operations base directly or indirectly on org.tmatesoft.svn.core.wc.SVNCommitItem and this class requires a working copy file path in it's constructor.

您可以覆盖此类并尝试实现您自己的版本,该版本不需要工作副本,但我没有详细检查过。

You may be able to override this class and try to implement your own version which does not require a working-copy but I have not checked that in detail.

这篇关于在没有本地结账的情况下通过SVNKit提交更改的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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