我如何更新本地计算机中的 TFS 工作区仅更新签入文件\文件夹

发布于 2024-11-28 22:59:44 字数 922 浏览 1 评论 0原文

对于 TFS,如何仅更新新签入文件或文件夹的工作区。当我发出命令tf get WORKAREA LOCATION时,它显示所有文件/文件夹都是最新的。但所有新签入的文件/文件夹都不是实际上,是最新的。当我运行命令 tf get WORKAREA LOCATION /recursive /force 时, get 显示:

Replacing AtomicsTest.java
Replacing BadLegacyDefaults
Replacing BadLegacyDefaults
Replacing BasicXMLClassTest
Replacing BigDecimalSubclas
Replacing EncodingTest.java
Replacing FileTest.java
Replacing HierarchicalField
Replacing HierarchicalField
Replacing InnerClassXMLTest
Replacing PrimitiveClassesT
Replacing PrimitivesTest.ja
Replacing PutFieldGetFieldT
Replacing ReadResolveTest.j
Replacing ReferenceTest.jav
Replacing SelfReferentialTe
Replacing SerializableObjec
Replacing SerializationTest
Replacing StandardSerialize
Replacing StringTest.java
Replacing TCDictionaryXMLTe
Replacing TransientAndStati
Replacing XMLTestSuite.java

这意味着更新每个文件和文件夹,这些文件和文件夹也不是新的,需要更多时间来更新。那么有没有办法只更新新文件/文件夹。

For TFS, how can I update my workarea of new check-ins file or folder only. When I'm giving the command tf get WORKAREA LOCATION, it is showing All the files/folders are up to date. But all new check-ins files/folders are not up to date, actually. When I'm running the command tf get WORKAREA LOCATION /recursive /force the get is showing:

Replacing AtomicsTest.java
Replacing BadLegacyDefaults
Replacing BadLegacyDefaults
Replacing BasicXMLClassTest
Replacing BigDecimalSubclas
Replacing EncodingTest.java
Replacing FileTest.java
Replacing HierarchicalField
Replacing HierarchicalField
Replacing InnerClassXMLTest
Replacing PrimitiveClassesT
Replacing PrimitivesTest.ja
Replacing PutFieldGetFieldT
Replacing ReadResolveTest.j
Replacing ReferenceTest.jav
Replacing SelfReferentialTe
Replacing SerializableObjec
Replacing SerializationTest
Replacing StandardSerialize
Replacing StringTest.java
Replacing TCDictionaryXMLTe
Replacing TransientAndStati
Replacing XMLTestSuite.java

Which means updating each files and folder which is also not new which takes more time to update. So is there ant way to update only new files/folders only.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

平定天下 2024-12-05 22:59:44

从工作区中的目录运行 tf get 将更新所有过时源。传递 /force 参数将导致检索所有 文件,而不仅仅是那些过期的文件。

如果您只需要特定路径下的文件,则可以指定itemspec。命令行如下所示:

tf get $/project/folder/subfolder /recursive

Running tf get from a directory in your workspace will update all out-of-date sources. Passing the /force parameter will cause all files to be retrieved rather than just those that are out of date.

If you only want files beneath a particular particular path, you can specify an itemspec. The command line would look like this:

tf get $/project/folder/subfolder /recursive
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文