[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

How to properly commit to a registry when users use sftp to alter the checkedout repository

From: Paul Williams <paul.williams_at_uwex.edu>
Date: Tue, 4 Aug 2009 14:54:06 -0500

How to properly commit to a registry when users use sftp to alter a

checked-out repository?


Here is what we are attempting to do:


We have subversion repositories set up on a central unix server and have

checked out a repository to a location that users can access via sftp.

This location will be located on windows server

so the unix system is mounting a windows system via cifs.


The plan is for users to be able to edit, add, and delete files and

directories within this sftp location. Then periodically, (perhaps

we would like to automaticlly commit any changes that were made to

this checked out location back to the repository. Primarily,

so we can recover data if someone makes an error.


If a user edits or add a file (or directory), it appears we can use

  cd $DIR/$1

  /usr/bin/svn add * --force

  /usr/bin/svn commit -m "`date`"

  /bin/chown -R apache.apache /data/svn/$1


However, I have not been able to come up with a method

that will automatically handle deletion of files or directories.

If a file is deleted, it doesn't get propogated to the repository.


Suggestions are welcome.




To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-04 22:01:15 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.