差异命令无法正常工作 [英] tf difference command not working properly

查看:63
本文介绍了差异命令无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我是新来的,希望不打破任何非正式的发布规则。提前感谢能够提供帮助的任何人。

Hello. I'm new here and hoping not to break any informal posting rules. Thank you in advance to anyone who can provide some help.

我编写了脚本来处理我们在TFS中使用PowerShell中的TFS命令进行的一些重复操作(获取,编辑 - 像那)。我们在多个流上运行,因此我们经常需要在多个流中获取和修改相同的模块以添加功能
或修复错误,因此脚本允许同时在多个流中引入相同的程序。

I've written scripts to handle some repeated operations that we do on TFS with TFS commands in PowerShell (get, edit - stuff like that). We operate on multiple streams, so we often have to get and modify the same module in multiple streams to add functionality or fix bugs, so the scripts allow the same program(s) to be pulled in in multiple streams simultaneously.

足够的吹牛。我对tf差异命令有一个真正的问题。我在另一台开发人员的机器上试过它,我根本没有看到这个问题。我正在运行MS Visual Studio Professional 2015,版本14.0.25431.01。 TFS是版本14.102.25619.0。

Enough bragging. I'm having a real problem with the tf difference command. I have tried it on another developer's machine and I am not seeing this problem at all. I'm running MS Visual Studio Professional 2015, Version 14.0.25431.01. TFS is version 14.102.25619.0.

最终目标是我想尝试将本地版本与之前(不是最近推广的)版本进行比较。只是指定该版本(期望它应该与工作区版本进行比较)对我来说根本不起作用:

The ultimate goal is that I want to try to compare a local version with a previous (not the most recently promoted) version. Just specifying that version (with the expectation it should compare against the workspace version) is not working for me at all:

[rob.tukey] \ prem95em:56> tf history prem95em_correction.4gl / noprompt
更改集更改                     用户             日期      评论
--------- -------------------------- ---------- ------- ---------- -----------------------
297786   编辑                       Tukey,Rob        2/2/2017年   MUN-259692  *** *** NO_CI
297779   编辑                       Tukey,Rob        2/2/2017年   MUN-259692
[rob.tukey] \prem95em: 56> tf history prem95em_correction.4gl /noprompt
Changeset Change                     User              Date       Comment
--------- -------------------------- ----------------- ---------- -----------------------
297786    edit                       Tukey, Rob        2/2/2017   MUN-259692  ***NO_CI***
297779    edit                       Tukey, Rob        2/2/2017   MUN-259692

推荐答案

你好rob,tukey,

Hi rob,tukey,

感谢你在这里发帖。

从您的帖子中得到"此操作不需要版本规范。"这可能是因为在您的本地工作区中,您要比较的文件没有任何
待定更改。这意味着当您运行该命令时,此文件已经签入

From your post you get "The version specification is not needed for this operation." It may because that in your local workspace, the file you want to compare doesn't have any pending changes. That means when you run the command, this files has already checked in.

如果您编辑此文件并保存而不检入并再次运行此命令,它将本地版本与您在命令中指定的版本进行比较。你的命令是正确的,两个/版本:c297779和分号都有效。

If you edit this file and save without checking in and run this command again, it will compare the local version with the version you specify in the command. Your command is correct, both /version:c297779 and semicolon works.

祝你好运


这篇关于差异命令无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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