无法使用标签检索
我们正在尝试使用 Visual Studio 实现自动化,该应用程序将:
- 在特定时间点创建主干的副本。
- 为目录分配标签
- 删除目录
- 将来只能重新创建带标签的目录 为此
,我们创建一个 svn 副本,为其指定一个标签名称,即
svn copy "C:\SVN_Checkout\P41-ships\complete" "C:\SVN_Checkout\P41-ships V1.1"
我们使用 svn commit 提交更改。此时我们可以检查V1.1标记的目录没有问题。
我们使用 svn delete "C:\SVN_Checkout\P41-ships V1.1" 删除目录
但是当我们检索标记的目录时,我们收到错误URL“SVN_Checkout\P41-ships%20V%201.1”不存在
。
我们做错了什么或者这可以做到吗?
We are trying to automate using visual studio an application that will:
- create a copy of the trunk at a spcific time point.
- Assign a tag to the directory
- Remove the directory
- Be able to recreate only the tagged directory in the future
To do this we do a svn copy giving it a tag name, i.e.
svn copy "C:\SVN_Checkout\P41-ships\complete" "C:\SVN_Checkout\P41-ships V1.1"
We commit the changes using svn commit
. At this point we can checkout the V1.1 tagged directory no problems.
We delete the directory using svn delete "C:\SVN_Checkout\P41-ships V1.1"
But when we go to retrieve the tagged directory we get an errorURL 'SVN_Checkout\P41-ships%20V%201.1' doesn't exist
.
What are we doing wrong or can this even be done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有“但是”。一旦您
svn delete
分支,它就不再存在。毕竟,这就是删除的目的。 (当然,SVN 确实会保留历史记录,因此它在旧版本中仍然存在。但在当前版本中已不存在。)是否您想要的是文件级删除?那将是
删除“C:\SVN_Checkout\P41-ships V1.1”
There's no "but". Once you
svn delete
the branch, it's no longer existing. That is what deletion is for, after all. (Of course, SVN does preserve history, so it's still there in older revisions. But not in the current one.)Could it be that what you want is a file-level delete? That would be
del "C:\SVN_Checkout\P41-ships V1.1"
如果您只想删除签出的代码,只需使用普通删除方法,而不是
svn delete
。svn
命令将更改应用到存储库,而不仅仅是本地文件系统。If all you want to do is delete the checked out code, just use normal delete methods, not
svn delete
. Thesvn
commands apply the changes to the repository, not just the local filesystem.