Is it possible to always overwrite local changes when updating from SVN

svn

I have a file in a Subversion repository which changes almost every time it's opened in the IDE, thus creating conflicts on almost every update.

Is it possible to force SVN to always overwrite the local file with the one in the repository, even if there are local changes?

EDIT: It's a VB6 project file. Those contain GUIDs of the referenced ActiveX classes and their local file names. When a project is opened, the local file names are automaticall updated. It has to be under version control because the application cannot be built without it.

Best Answer

Firstly, I feel sorry for you for having to work in VB6.

Secondly, I suppose what you really need to do is delete the file before you update. So in this case, you could have a bat file called 'do update', and you just double-click that, instead of actually using TortiseSVN (or whatever) to do the updates. You make this bat delete it, and then, unsurprisingly, update.

Incredibly lame, but I do see your problem that the file needs to be in source control, yet you want to disregard general changes unless explicitly committed.

Related Topic