Page 1 of 1

Source control file not loading

Posted: Mon 05 Jul 2010 12:17
by stuartsnaddon
When I choose the Visual Studio "Compare This Document" menu option, CodeCompare only loads in the local (diff) file, the source control version is not loaded.

This actually works correctly on at home when I was testing CodeCompare, but at work, it's a different story. I'm using the PushOk plugin at work if that helps.

Any ideas on how to configure CodeCompare or Tortoise SVN to load in the version under source control?

Posted: Mon 05 Jul 2010 13:45
by Artem
The "Compare This Document" command creates a comparison document with the current document as source, a target file is unspecified - you should specify it manually.

If you want to compare a local version with the one from the repository, you should use TortoiseSVN context menu ("Diff with previous version" command, for example).

Posted: Tue 06 Jul 2010 21:24
by stuartsnaddon
I've found it. It's the VisualSVN plugin that does what I want. VisualSVN has a context menu option "Show Differences For xxx.cs"

When you click this, is compares the local copy of the file against the HEAD in source control.

Very handy to be able to do this from within Visual Studio.

The down-side is that you need to buy Visual SVN, which is probably a good thing actually :)

If you guys make a plugin for Visual Studio that does this, that would be perfect!

Posted: Wed 07 Jul 2010 08:47
by stuartsnaddon
stuartsnaddon wrote:I've found it. It's the VisualSVN plugin that does what I want. VisualSVN has a context menu option "Show Differences For xxx.cs"

When you click this, is compares the local copy of the file against the HEAD in source control.

Very handy to be able to do this from within Visual Studio.

The down-side is that you need to buy Visual SVN, which is probably a good thing actually :)

If you guys make a plugin for Visual Studio that does this, that would be perfect!
Forgot to mention, I've configure the "Show Differences For " to use CodeCompare to display the files, not the built in merge/diff tools from Tortoise. Great stuff!