views:

45

answers:

1

I currently have a requirement where I need to validate that all the files in a folder structure which are in SVN to see if they are up to date. Is there a way to do this using the svn artefacts that are held in the same directory as the file without interacting with SVN?

Apologies, this appears to need some further explanation... I'm iterating through the projects loaded within a solution and can access the corresponding files on the file system. I need to check
a) if corresponding files on the file system match the latest revision if the file is under source control and b) if any or the files or projects have not been added to the SVN.

This is essentially a validation check prior to calling a build server to start a build in case a user has forgotten to check in some changes, new files or new projects to a solution. The build server retrieves the code directly from the source control.

+1  A: 

Do you ask how to detect what files stored in SVN folder(s) are changed?

You ask to do that without interacting with SVN, but I would recommend avoid this because file or folder structure can be changed by Subversion team in future.

Try to use SharpSVN I use it in one of my projects. It handy, stable, has nice API and actively developed.

Also check comments in your question. Anyway you can check source code of SharpSVN to undestand how to make it by yourself

Nick Martyshchenko
My thinking was that removing the need to interact with another system would reduce the complexity. Having read your response I can see that that could be the wrong approach to take. I'll delve into SharpSVN ater the weekend :)
gouldos
@gouldos Hope it helps :)
Nick Martyshchenko