Fernando
Fernando

Reputation: 1249

SVN Auto Update

I'm using AnkhSVN with Visual Studio 2010.

When I start to edit a file, I'd like to either automatically update the file from the repository, or be warned that it needs updating.

Is this possible?

Upvotes: 5

Views: 2588

Answers (2)

Sander Rijken
Sander Rijken

Reputation: 21615

There's not really a way to do this in Subversion, except when you're using locking and svn:needs-lock on files. The reason is that when you start editing your file can be up to date, but when you want to commit it's changed, and needs updating. Subversion will check for this case and notify you to update when you try to commit.

To get notification of files others are working on, you can go to the "Recent changes" tab in the Pending Changes window (View -> Pending Changes, then click the 3rd tab from the top). You can configure this to update every 'X' time, UI should be pretty self explanatory here.

See my answer here for info on svn:needs-lock, but make sure you understand the pitfalls of exclusive locking of files.

Upvotes: 1

Tom
Tom

Reputation: 1052

Would keeping the working copy updated be of use?

If so, you can use this: How do I automatically update a Subversion working copy?

Upvotes: 2

Related Questions