我如何更新本地计算机中的 TFS 工作区仅更新签入文件\文件夹
对于 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从工作区中的目录运行 tf get 将更新所有过时源。传递 /force 参数将导致检索所有 文件,而不仅仅是那些过期的文件。
如果您只需要特定路径下的文件,则可以指定itemspec。命令行如下所示:
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: