index > Team Foundation Server - Version Control > TF doesn't recognize "setnoprompt" command?

TF doesn't recognize "setnoprompt" command?


I'm trying to use a command file to perform some tasks with TF.exe. Since I want this operation to be interactive I'm trying to use the "setnoprompt false" command listed in the documentation for TF, but when I run my command file I receieve the error "Unrecognized command: setnoprompt".

This is the content of my command file:

setnoprompt false
merge /recursive /version:C288~C288 $/Test/Dev $/Test/Branch1

When executed the setnoprompt command generates the error mentioned above and the merge command executes without displaying any dialogs (which I don't want since it generates conflicts that needs to be resolved)

What am I doing wrong here??




Johan Nyvaller - Build responsible ABB Robotics
Johan Nyvaller

Hello,

unfortunately setnoprompt was removed from TFS RTM and documentation wasn't updated then. There is no way to make commands pop up the dialogs when they are run in tf @ mode. In the future release we plan to add /prompt option then would let you do it.




Michal Malecki
Michal Malecki - MSFT

Hi Michal, thanks for your reply, altough it was not what I was hoping for...

If I explain my problem in a bit more detail the perhaps you could suggest an alternative solution (altough I'm beginning to suspect that what I want to do isn't possible..)

I'm writing a custom tool for our developers to ease the integration of changes into various branches, as a part of this I will have to do a lot of merges, to avoid having to implement all the conflict resolving logic myself I planned to just call tf.exe and let it deal with it. Now, to keep a log of things I would like to redirect the output from tf.exe to my application, unfortunately it seems that tf detects this and thinks it's running in non-interactive mode - which means no dialogs and my plan for dealing with merge conflicts fails miserably...

So the question is: Is it possible in any way to redirect the output from tf.exe and still have the resolve dialogs popup?




Johan Nyvaller - Build responsible ABB Robotics
Johan Nyvaller
As you expect - no :( We check if we are running in tf @ or in redirected output and we add implicit noprompt flag. As I mentioned - I will be changed in the next release. Maybe try running tf merge without redirection and than check if there are unresolved conflicts? Just an idea.


Michal Malecki
Michal Malecki - MSFT

Well, then I have it confirmed anyway.

For anyone else having similar problems, my backup solution will probably be to run the merge silent with redirection (to be able to capture any error messages etc.) and then do an interactive tf resolve before checkin to resolve all conflicts.

Thanks for the help.




Johan Nyvaller - Build responsible ABB Robotics
Johan Nyvaller
reply 5

You can use google to search for other answers

 

More Articles

Check-in programatically
Migrating TFS workspace from TFS Server A to TFS Server B, is thi...
Branching
Bug: Remove Becomes Delete
Error checking out files "user cancellation occurred"
Branch or second workspace?
HELP: How can I remove team projects from source control only?
Restricting access to older changesets / revisions
VSS 2005 as a TFVC Client?
Open solution of other user
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

TS MSSCCI installation requirements
Problem with source control, web project…
Massive confusion here...
Foundation server Proxy
More than just VSS 2005?
Best Pracices for concurrent development.
TF hanging
Weird Compare Issue
Finding Other Checkouts
Undelete
Multiple Source control Databases in TFS
Mapping Source Control Folder from Comma…
Sourcecode corruption
VB: Edit and Continue
Import CheckinNote definition?

Hot Articles

Files Excluded
Coexistence of VSS and TFS
Error migrating from VSS to TFS
Check OUt - Get Latest Version
Foundation server Proxy
"Add Files" option greyed out
TF14087: Cannot undelete...because not a…
BisSubscribe vs TfsSubscribe
Email notification per folder per user
Using MSSCCI provider. How to "re-…
Open solution of other user
get latest on checkout macro
Working directory configuration
Merged directories: How to? Impossible?
Unique filenames?

Recommend Articles

Shared Workspace error message
Error in VS2005 on Get Latest command
TFS Workgroup - Possible Bug
TFS proxy in two differnt domains
Why does TFS's Version Control employ fo…
Getting error "TF10201: Source cont…
Merging From Branch to Branch
List of files updated?
Official data about overhead and perform…
Problem with shelving
Code changes are not reflected to the se…
Few questions on merging through the API
SCM plan for dependent projects in TFS
Database Size After Conversion
Sourcecode corruption