Creating a patch with TFS

Creating a patch is very simple in SubVersion, with Tortoise you right-click and select Create Patch. But for my life I can not find this functionality in TFS. Is it possible?

If not, what is the standard way to send patches in open source TFS projects (a la CodePlex)?

+52
version-control tfs patch
Sep 09 '08 at 15:57
source share
4 answers
tf diff /shelveset:shelveset /format:unified 

Edit: This is written to standard output. You can transfer the output to a file.

For more options, see Difference Command .

+47
Sep 09 '08 at 16:03
source share
+5
Sep 09 '08 at 16:06
source share

Since TFS does not support patch files, the most common thing I see people do on CodePlex is simply zip up the modified files and download the zip. The project coordinator then makes a distinction with their own review.

However, since CodePlex also supports TortoiseSVN, more and more people are using this to create their patch files.

+2
Sep 17 '08 at 7:30
source share

I wrote a blog post about a similar problem in which I used the TF.exe and 7Zip commands to create a TFS patch file , which is then applied to another TFS server or workspace. I posted Powershell scripts on Github , which you can use to modify any pending changes on one workspace, and then apply them to another server. It will need to be changed to use a set of changes instead of pending changes, but this should not be too complicated.

0
Sep 14 '14 at 18:37
source share



All Articles