SVN-当您标记工作副本时,它仍然是便宜的副本吗? [英] SVN - When you tag a working copy is it still a cheap copy?

查看:131
本文介绍了SVN-当您标记工作副本时,它仍然是便宜的副本吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Subversion,在我的工作副本中进行了较小的修改(更新版本号).然后,我想标记我的工作副本.经过修改后,此标记是否仍是廉价副本,还是SVN会复制文件?我不希望看到我的存储库规模巨大,因为我试图保存版本号更改.

Using Subversion, in my working copy I make a minor modification (update a version number). I would then like to tag my working copy. Would this tag still be a cheap copy with the modification, or would SVN duplicate the files? I would hate to see my repository grow enormously in size because I'm trying to save a version number change.

我要求创建包含修改而不是先提交然后添加标签的标签的原因涉及我的构建服务器.生成服务器创建一个CCNetLabel,我用它来更新项目的版本号(AssemblyInfo.cs).构建成功后,它将创建一个标签.当我使用ForceBuild时,标记基于工作副本,该工作副本将包含修改后的版本号.我希望标签包含适当的版本号.

The reason I ask about creating a tag that contains a modification rather than committing then tagging involves my build server. The build server creates a CCNetLabel which I use to update the version numbers of my projects (AssemblyInfo.cs). When the build is successful it creates a tag. When I use ForceBuild the tag is based on the working copy which would contain the modified version number. I want the tag to contain the appropriate version number.

注意:如果我要创建分支或标签,这是有争议的,但是SVN不会在两者之间进行区分.

note: It's debatable if I'm creating a branch or a tag, however SVN does not make a distinction between the two.

推荐答案

这要视情况而定.如果您的工作副本是最新的(所有节点都具有相同的修订版本),那么它与从存储库中进行标记一样便宜.

It depends. If your working copy is up to date (all nodes have the same revision) it is just as cheap as tagging from the repository.

对于具有与其父版本不同的修订版本的每个文件/目录(或实际上是子树),将添加其他数据.而且,如果您进行了本地修改,甚至还会添加更多数据.

For every file/directory (or actually subtree) with a different revision than its parent additional data will be added. And if you have local modifications even more data will be added.

但是仍然很便宜:它不会复制存储库中已经存在的任何文件.

But it is still reasonable cheap: It doesn't duplicate any files that are already in the repository.

这篇关于SVN-当您标记工作副本时,它仍然是便宜的副本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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