These days I created wireframes in Mockups for all my screens. But checking in those files were so difficult that I routinely procrastinated the task. I have installed TFS Power Tools with its shell extension, but that UI suffers from the same usability issues.
One possible workaround is to use TortoiseHg, which is pretty frictionless. Eric Hexter at LosTechies has an excellent recipe on how to set up Mercurial as a local repository for TFS. He didn’t, however, provide the source code for the Power Shell scripts. I typed them up here with minor adjustments.
Pull.ps1
- $projectName = "your-project"
- $tf = "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe"
- function pull{
- cd "\your\tfs\folder"
- &$tf get
- hg commit -A -m "from tfs"
- cd "your\working\hg\folder"
- hg pull --rebase
- }
- pull
Push.ps1
- $projectName = "your-project"
- $tfpt = "C:\Program Files (x86)\Microsoft Team Foundation Server 2010 Power Tools\tfpt.exe"
- $tf = "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe"
- hg push
- cd "\your\tfs\folder"
- &$tfpt scorch /noprompt /exclude:.hgignore`,*.ps1`,.hg
- hg update -C -y
- &$tfpt online /adds /exclude:.hgignore`,*.ps1`,.hg`,_ReSharper`,bin`,obj`,*.user`,*.suo
- &$tf checkin
- cd "your\working\hg\folder"
No comments:
Post a Comment