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

RE: Forced to use svn delete?

From: Dassi, Nasser <NDassi_at_141xm.com>
Date: 2005-01-20 20:49:35 CET

I am planning on automating the add/delete functionality via cron-job as
well. The approach I had in mind was simple:

From the Working Copy directory, generate an SVN STATUS output
(list.txt). For all new items "?" I would grab their filenames from the
temp file (list.txt) and save their entries to a new file (list_a.txt);
same goes for deleted "!" items (to "list_d.txt").

Next, I would SVN ADD list_a.txt (not sure of syntax) and I would SVN
DELETE list_d.txt (again, not sure of syntax). Last, I would SVN COMMIT
(don't forget a message).

It is not the cleanest, but it works. If your users are *not* on MacOS
X, then you can consider using Apache + WebDAV + SVN (Autoversioning)...
It works and would auto commit. Because half my developers are using
Macs I am going to use the cron-job approach.

Hope that helps...

Nasser Dassi
Sr. Technical Programmer
=========================================
E: ndassi@141xm.com
=========================================

-----Original Message-----
From: Stephen Dranger [mailto:sdrang1@uic.edu]
Sent: Thursday, January 20, 2005 1:36 PM
To: users@subversion.tigris.org
Subject: Forced to use svn delete?

I am running an archive in which users connect through ftp. They are not
computer-savvy enough to connect through the svn server or know how to
use svn add and svn delete.
What I have right now is a system in which users add, remove, and change
files through ftp. I have a cron script running in the background that
will periodically svn add * --force and then commit. The problem is that
when users delete or move a file, svn cannot handle the fact that the
files were not deleted using svn delete.

Is there any method I can use to get svn to automatically remove files
that are not present in the local version of the archive? The only other
way I can see of doing this is to write a script to copy all the files
that are not present in the local archive from a copy of the current
revision, then svn delete them. But this sounds too painful and it seems
like svn should have a way of handling this situation.

Please help,
--Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 20 20:53:09 2005

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.