TFS:如何撤消批处理文件中未修改文件的签出 [英] TFS: How can you Undo Checkout of Unmodified files in a batch file

查看:40
本文介绍了TFS:如何撤消批处理文件中未修改文件的签出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用批处理文件来生成代码,它会自动从 Team Foundation Server (TFS) 检出生成的文件,以便重新生成它们.这些文件中的大部分都没有被修改,但生成器并不提前知道这一点.

We use a batch file to generate code, and it automatically checks out the generated files from Team Foundation Server (TFS) so that it can regenerate them. The majority of these files are not modified, but the generator does not know this ahead of time.

tfs undo"命令会撤消结帐,但会提示是否修改了某些内容(我们不想这样做).我们也不想立即签入生成的文件.

The "tfs undo" command undoes the checkout, but prompts if some have been modified (which we don't want to do). We also do not want to check in the generated files right away.

是否有一个命令(或一系列命令)可以在不提示用户的情况下撤消所有未修改文件的签出?

Is there a command (or series of commands) to undo checkout of all unmodified files without prompting the user?

推荐答案

查看 Team Foundation Server Power Tools 2011 年 8 月

c:\myProject> tfpt uu . /noget /recursive

感谢 Matt Florence 提供链接更新.

感谢 Ray Vega 的实际语法.

这篇关于TFS:如何撤消批处理文件中未修改文件的签出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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