Request info on how SVN client knows about changes on file system

View: New views
2 Messages — Rating Filter:   Alert me  

Request info on how SVN client knows about changes on file system

by Steve Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a need to distribute files to a local file system on a user's PC, and to monitor them for changes bacically to ensure that we are using the correct version of a particular file at a particular time, and that someone has not changed the file since it was placed on the file system by our application.  Design constraints preclude using a version control system directly, as we need to download large numbers of files in a zip and we need to allow the contents of one zip file to clobber the contents of another zip.  We do however need to validate that any one zip is accurately

It has occurred to me that this problem has already been solved by version control clients like the CVS or Subversion client, which write data to the file system, and use this data to determine if files on the file system have changed and need to be checked in.

Can anyone provide insight on the details on the way in which the SVN client creates the .SVN folder on the file system, what's in it, and how it is used to determine that the file has changed, so that we can learn from it?

Thanks,
Steve

Re: Request info on how SVN client knows about changes on file system

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Steve,

 > Can anyone provide insight on the details on the way in which the SVN
client
 > creates the .SVN folder on the file system, what's in it, and how it
is used
 > to determine that the file has changed, so that we can learn from it?
Briefly, Subversion uses ".svn" administrative directories to store
"pristine" copies of the files and some additional information about
files in the working copy. Then it uses this information to get file
status - whether it is "scheduled for deletion", "addition" or modified.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

Steve Hall wrote:

> I have a need to distribute files to a local file system on a user's PC, and
> to monitor them for changes bacically to ensure that we are using the
> correct version of a particular file at a particular time, and that someone
> has not changed the file since it was placed on the file system by our
> application.  Design constraints preclude using a version control system
> directly, as we need to download large numbers of files in a zip and we need
> to allow the contents of one zip file to clobber the contents of another
> zip.  We do however need to validate that any one zip is accurately
>
> It has occurred to me that this problem has already been solved by version
> control clients like the CVS or Subversion client, which write data to the
> file system, and use this data to determine if files on the file system have
> changed and need to be checked in.
>
> Can anyone provide insight on the details on the way in which the SVN client
> creates the .SVN folder on the file system, what's in it, and how it is used
> to determine that the file has changed, so that we can learn from it?
>
> Thanks,
> Steve