问题描述
限时送ChatGPT账号..我们正在将 TFS 存储库迁移到 Mercurial,因为我们已经受够了 TFS.不幸的是,TFS 在让我们离开之前向我们扔了最后一个曲线球.我们编写了一个脚本,我们打算获取"每个变更集(包括时间戳、签入注释等),然后将它们添加到 Mercurial 存储库并签入.
We are just in the process of migrating our TFS repo to Mercurial as we've had enough of TFS. Unfortunately TFS has thrown us one last curve ball before it lets us go. We've wrote a script that we intend to have "get" each changeset (including timestamp, check-in comment etc) and then add them to the Mercurial repo and check it in.
不幸的是,当我们执行 tf get */version:C111/overwrite
命令时,TFS 表现得很奇怪.它立即返回所有文件都是最新的".但这是不可能的.工作区文件夹是空的!并且查看 111
变更集的详细信息非常清楚地表明变更集包含东西",即 repo 肯定不是空的.
Unfortunately TFS is acting very strange when we execute the tf get * /version:C111 /overwrite
command. It immediately returns "All files are up to date." But this is impossible. The workspace folder is empty! And viewing the details for the 111
changeset quite clearly shows that the changeset contains "stuff" i.e. the repo is certainly not empty.
这可能是什么原因造成的?
What could be causing this?
推荐答案
如果 itemspec.如果不包含绝对路径,则假定为相对路径.
TF will return "All files are up to date" if the itemspec you pass in is not found. If you don't include an absolute path, a relative path is assumed.
例如如果您发送
tf get myFile.cs /version:1009 /force
它在当前目录中查找不存在的 myFile.cs,因此它返回所有文件都是最新的".我们真正想要的是
it looks in the current directory for myFile.cs, which doesn't exist, so it returns "All files are up to date." What we really want is
tf get C:\myproject\myFile.cs /version:1009 /force
与通配符相同,例如
tf get D:\project\* /version:C111 /overwrite
查看itemspec链接了解更多信息.
Check out the itemspec link for more info.
这篇关于TFS get 命令错误地返回“所有文件都是最新的".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论