This is my pull.ps1 script to sync against tfs. I have one folder which is where my TFS connect files are connects. This is also a Mercurial repo. I have a second Mercurial repository that I do all of my work in. I do all of my merges in my working folder and I use the mercurial tools to do the merging.

$projectName = "foo"
$tfs = "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe"
hg commit
cd ..\$projectName-HG-From-TFS
hg update
&$tfs get
hg commit
cd ..\$projectName-working
hg pull
hg update
hg merge

Last edited Jun 2, 2010 at 5:56 PM by erichexter, version 1


Togakangaroo Jun 8, 2010 at 3:19 PM 
Hey Eric, do you have a push script too? How do you handle the whole thing where TFS doesn't know about files changed outside of Visual Studio?