views:

423

answers:

3

Hi there,

I'm using VisualSvn with my vs2008 and I have to run some sort of commit monitor in the tray area to see if the local copy of project is out of date.

I have two problems with that:

1.I hate to have it in two places, I want to see that as an icon in my VS.

2.The commit monitor software keeps an eye on several projects, when I work on project 1 (which VS knows about), I'm not interested in other projects...

I couldn't find any addons for VS to do that and was wondering if anyone knows about anything good...

Cheers,

Ali

+4  A: 

I'm assuming VisualSVN is your "server" (even if running on the same machine).

AnkhSVN is a good Visual Studio Integrated SVN Client.

Nate Bross
no mate, VisualSVN is my AnkhSVN (my vs addon)there also is a visualSVN server, which I'm not asking about...
Ali Shafai
+3  A: 

Generally, you have 2 options (besides running commitmonitor as you already do):

  • run update before you start to change something
  • ignore it all and merge with any updates when you want to commit.

SVN's really designed around the 'wait until you're ready and merge it all together' model, as there's no guarantee that even if you update your working copy immediately before starting to modify it, someone won't commit changes before you've had a chance to commit. So, let the system do the work for you.

The ultimate alternative if you are worried about conflicts is to use the svn:needs-lock property which means you will have to get a lock on any file you modify before modifying it, and you won't be able to get a lock on a file someone else is modifying.

You might like to ask the VisualSVN people if they'd add an option to check the repository when a project is loaded by VS (or run AnkhSVN and implement this feature yourself).

gbjbaanb
+2  A: 

Work has started in AnkhSVN in this direction, we started to implement the 'Synchronize View' that's also used in Eclipse/Subclipse. The things still missing are: Scheduled checking of the repository, and maybe a notification inside VS to tell you that something has changed.

Right now you can manually refresh this view to see local and remote changes (and merges which can be potential conflicts). Patches are welcome to extend this feature :-)

Sander Rijken