【问题标题】:queue commits on SVNSVN 上的队列提交
【发布时间】:2011-04-24 00:32:53
【问题描述】:

有没有办法在我实际提交之前对多个提交(带有消息)进行排队?

在工作中,我们正在运行一个 SVN 服务器,我更新了笔记本电脑上的代码。当我在家时,我无法提交,但我仍然喜欢记录这些提交。

这是变更列表的用途吗?

【问题讨论】:

    标签: svn tortoisesvn commit


    【解决方案1】:

    不可能只用普通的 svn 做到这一点。因为它违背了集中式版本控制的目的。

    但是 svk(with svn) 将最适合您的需要。 svk是一个去中心化的版本控制系统(它封装了svn)。

    From svk's FAQ

    <snip>
        * Does svk allow you to make several commits to your local copy of the repository and then be able to merge all the commits back to the main repository (keeping all the log messages)? 
    
    Yes - this was its very first feature. However the merge of local changes will be one commit in the remote repository by default, unless you use smerge -I. Meanwhile, smerge -l will bring the logs to the commit made to remote repository. 
    </snip>
    

    【讨论】:

    • ATM 这超出了我的想象,我需要时间来检查一下。谢谢你的回答。
    【解决方案2】:

    是的,使用 git-svn。您可以查看一个 Subversion 存储库,以便拥有它的本地 git 副本,在其上完成所有工作,然后在有机会时将其推送回服务器。

    【讨论】:

    • 我只想使用 SVN,不想在我的笔记本电脑上安装任何 SVN/GIT 服务器。
    • 您不需要运行服务器。 Git 是一个分布式的、基于文件的 SCM,它更像是一个文件系统而不是 Subversion。有人通过工作将 git-svn 放在一起,真的是你的福气。 // 你不能在没有连接的情况下提交到 Subversion 存储库。由于它们是中心化的,就是这样。您可以创建补丁文件,然后在再次连接后按顺序应用它们,但这很麻烦。
    • ATM 这超出了我的想象,我需要时间来检查一下。谢谢你的回答,我会按照人们似乎同意的方式给你分数。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-10
    • 2011-07-22
    • 2012-12-01
    相关资源
    最近更新 更多