# Dealing with TFS

**URL:** <https://www.ruby-forum.com/t/dealing-with-tfs/182155>\
**Category:** IronRuby\
**Created:** [January 23, 2010, 4:41pm UTC](https://www.ruby-forum.com/t/dealing-with-tfs/182155 "2010-01-23T16:41:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 23, 2010, 4:41pm UTC](https://www.ruby-forum.com/t/dealing-with-tfs/182155/1 "2010-01-23T16:41:29Z")

</div>

Hi

How do you guys deal with TFS?

My guys have settled on Rubymine as their IDE, but their SCM is TFS of  
course as it’s a .NET shop.  
As you’re well aware off TFS has the unfortunate habit of marking files  
as  
read-only and AFAIK there isn’t an easy way to make it detect new files  
short of going through all the folders and manually adding the new  
files.  
When you’re on a roll with a rails app for example this can mean there  
are  
quite a few files that need to be added.

## What is the workflow you settled on? use git for everything and once in a while make it sync with TFS?

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([http://manning.com/carrero](http://manning.com/carrero))

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 23, 2010, 5:07pm UTC](https://www.ruby-forum.com/t/dealing-with-tfs/182155/2 "2010-01-23T17:07:14Z")

</div>

I know some people who like “tfpt online” (from TFS Power  
Tools[http://www.microsoft.com/downloads/details.aspx?FamilyId=FBD14EEA-781F-45A1-8C46-9F6BA2F68BF0&displaylang=en](http://www.microsoft.com/downloads/details.aspx?FamilyId=FBD14EEA-781F-45A1-8C46-9F6BA2F68BF0&displaylang=en))  
for the purpose of adding a bunch of new files to a preexisting  
enlistment. I’ve never used it myself.

From: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Ivan Porto  
Carrero  
Sent: Saturday, January 23, 2010 7:28 AM  
To: ironruby-core  
Subject: [Ironruby-core] dealing with TFS

Hi

How do you guys deal with TFS?

My guys have settled on Rubymine as their IDE, but their SCM is TFS of  
course as it’s a .NET shop.  
As you’re well aware off TFS has the unfortunate habit of marking files  
as read-only and AFAIK there isn’t an easy way to make it detect new  
files short of going through all the folders and manually adding the new  
files. When you’re on a roll with a rails app for example this can mean  
there are quite a few files that need to be added.

## What is the workflow you settled on? use git for everything and once in a while make it sync with TFS?

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 23, 2010, 11:47pm UTC](https://www.ruby-forum.com/t/dealing-with-tfs/182155/3 "2010-01-23T23:47:31Z")

</div>

We’ve got a couple of people using the TFS-\>SVN bridge, which I think is  
made by the codeplex guys. It’s SLOW, but it works well for them, as  
they’re on smaller projects.

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 23, 2010, 7:49pm UTC](https://www.ruby-forum.com/t/dealing-with-tfs/182155/4 "2010-01-23T19:49:55Z")

</div>

Tfpt online is nice for that purpose. tf folderdiff . /r (recursive on  
this directory) is another way to detect changes, but itâ€™s a pain since  
it re-syncs everytime you make a change. Rails would make it hard, but a  
few other options I can think of to help:

a) If itâ€™s a new project, maybe Codeplexâ€™s new Mercurial support  
can convince them to use something different

b) I can help you get setup to sync Git with TFS like we do for  
IronRuby. Itâ€™s a bit of a kludge right now, but it works. Jimmy and I  
are both trying to make it better, but neither of us have the time yet.

c) Write a plugin for rails that hooks into the generatorâ€™s SCM  
support (-g and â€“s options) to add and edit files as it works.

One other thing I have for working within TFS. I map :w to :w! (to  
overwrite read-only files). And I have defined te and ta  
which simply call :!tf edit % and :!tf add %. The percent expands to the  
current file. Whenever I touch a file I run this command, of course,  
this requires you to launch vim from a command line that has TF in the  
path.

JD

From: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Curt  
Hagenlocher  
Sent: Saturday, January 23, 2010 8:02 AM  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Ironruby-core] dealing with TFS

I know some people who like “tfpt online” (from TFS Power  
Tools[http://www.microsoft.com/downloads/details.aspx?FamilyId=FBD14EEA-781F-45A1-8C46-9F6BA2F68BF0&displaylang=en](http://www.microsoft.com/downloads/details.aspx?FamilyId=FBD14EEA-781F-45A1-8C46-9F6BA2F68BF0&displaylang=en))  
for the purpose of adding a bunch of new files to a preexisting  
enlistment. I’ve never used it myself.

From: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Ivan Porto  
Carrero  
Sent: Saturday, January 23, 2010 7:28 AM  
To: ironruby-core  
Subject: [Ironruby-core] dealing with TFS

Hi

How do you guys deal with TFS?

My guys have settled on Rubymine as their IDE, but their SCM is TFS of  
course as it’s a .NET shop.  
As you’re well aware off TFS has the unfortunate habit of marking files  
as read-only and AFAIK there isn’t an easy way to make it detect new  
files short of going through all the folders and manually adding the new  
files. When you’re on a roll with a rails app for example this can mean  
there are quite a few files that need to be added.

## What is the workflow you settled on? use git for everything and once in a while make it sync with TFS?

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 24, 2010, 12:06am UTC](https://www.ruby-forum.com/t/dealing-with-tfs/182155/5 "2010-01-24T00:06:15Z")

</div>

svnbridge doesn’t work with rubymine or git-svn but it does with  
tortoise  
etc.

The source control needs to work from within the environment, at least  
that’s what the boss told me.

this looks promising too with a few rake tasks perhaps:  
[http://jeroen.haegebaert.com/post/2008/08/23/Dealing-with-the-quirks-of-TFS-using-git-take-2](http://jeroen.haegebaert.com/post/2008/08/23/Dealing-with-the-quirks-of-TFS-using-git-take-2)

I’ll check out the ironruby source code too on how you do it.

* * *

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([http://manning.com/carrero](http://manning.com/carrero))

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 27, 2010, 5:41am UTC](https://www.ruby-forum.com/t/dealing-with-tfs/182155/6 "2010-01-27T05:41:30Z")

</div>

I’ve not gone through the full post, but based on the title this might  
help:

> **[How to get Git and TFS Working Together](http://richardsbraindump.blogspot.com/2010/01/how-to-get-git-and-tfs-working-together.html)**
>
> Update: There's now a second approach for doing this that you may want to look at TFS has a lot going for it and from a team perspective it...

On Tue, Jan 26, 2010 at 7:37 PM, Jimmy S. \<

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 26, 2010, 9:38am UTC](https://www.ruby-forum.com/t/dealing-with-tfs/182155/7 "2010-01-26T09:38:18Z")

</div>

That blogpost is basically all Jim and I would want to do â€“ wrap the GIT  
and TFS command-lines. A step above that would be to use grit (GIT  
implementation in Ruby â€¦ or even Git#) as well as the TFS APIs. But as  
Jim said, we havenâ€™t found the time to make this really nice, so I  
welcome anyone else to do so.

As a starter, hereâ€™s my notes on using TFS and GIT together; itâ€™d be  
great to just get some easy-to-use scripts to wrap this up:

> **[286677’s gists](https://gist.github.com/286677)**
>
> GitHub Gist: star and fork 286677's gists by creating an account on GitHub.

~Jimmy

From: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Ivan Porto  
Carrero  
Sent: Saturday, January 23, 2010 3:06 PM  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Ironruby-core] dealing with TFS

svnbridge doesn’t work with rubymine or git-svn but it does with  
tortoise etc.

The source control needs to work from within the environment, at least  
that’s what the boss told me.

this looks promising too with a few rake tasks perhaps:  
[http://jeroen.haegebaert.com/post/2008/08/23/Dealing-with-the-quirks-of-TFS-using-git-take-2](http://jeroen.haegebaert.com/post/2008/08/23/Dealing-with-the-quirks-of-TFS-using-git-take-2)

I’ll check out the ironruby source code too on how you do it.

* * *

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))

On Sat, Jan 23, 2010 at 11:38 PM, Orion E.  
\<[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
We’ve got a couple of people using the TFS-\>SVN bridge, which I think is  
made by the codeplex guys. It’s SLOW, but it works well for them, as  
they’re on smaller projects.

On 24/01/2010, at 4:28 AM, Ivan Porto C. wrote:

Hi

How do you guys deal with TFS?

My guys have settled on Rubymine as their IDE, but their SCM is TFS of  
course as it’s a .NET shop.  
As you’re well aware off TFS has the unfortunate habit of marking files  
as read-only and AFAIK there isn’t an easy way to make it detect new  
files short of going through all the folders and manually adding the new  
files. When you’re on a roll with a rails app for example this can mean  
there are quite a few files that need to be added.

## What is the workflow you settled on? use git for everything and once in a while make it sync with TFS?

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)[http://flanders.co.nz/](http://flanders.co.nz/)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))

* * *

Ironruby-core mailing list  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

* * *

Ironruby-core mailing list  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)
