Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

To create shelvestet from set of files I use following command:

tf shelve /comment:myComment myShelveName /recursive 
/noprompt /replace /move "firstFile" "secondFile" ... "lastFile"

If all of the "firstFile, .. lastFile" are checked out then command succeeds - if any of them is not checked out then command fails.

Solution to avoid such failure is to checkout all the listed files regardless to whether they are changed or not. Another option would be to filter the names of the somehow. And you may find out more.

But, in general, is there some option to successfully use tf shelve on set of files where only some of them are checked out?

share|improve this question
add comment

1 Answer 1

No, there is no way to shelve files you have not first marked as changed. If you need such a feature frequently, you could write a batch script to first execute tf edit then tf shelve.

share|improve this answer
    
Actually this is what I'm doing..but I was looking for some way to optimize a bit.. –  rudolf_franek Aug 17 '12 at 12:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.