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

Re: automatically delete and add

From: Jerry Haltom <wasabi_at_larvalstage.net>
Date: 2005-04-26 16:51:35 CEST

Third party joining in.

I recognize that all interaction with files SHOULD happen through a SVN
client... and in the ideal world it would. However, we live in a world
that is less than ideal, where we have a lot of development tools that
do cracktastical things, such as automatically move and rename files! An
example is this SQL Server development plugin for VS.Net that I use...
that manages the source of all your stored procedures. It moves files
around, and of course doesn't talk to Subversion.

I don't expect Subversion to automatically track all these changes...
it's obviously technically infeasible. But it COULD offer a service to
help me find the moves and register them with SVN.

For instance: Say I move foo.txt to bar.txt without registering it with
Subversion. svn status could show something like the this:

?D foo.txt -> bar.txt
?A bar.txt <- foo.txt

Off the wall idea. Basically it's saying "is this file the results of
that file?" This could be determined by comparing all the new files
against all the existing files looking for differences of a certain
threshold. Exactly the same? It's an obvious the copy. 99 out of 100
lines the same? Probably a copy.

Just a suggestion I realize. Wanted to put it out there for people to
shoot at. Don't tell me to submit a patch, if I had the time I would.

Regardless of all that. Being able to run "svn mv" to register a move
that has already happened would be totally useful. Perhaps a command
line option.

$ mv foo.txt bar.txt
$ svn mv foo.txt bar.txt
svn: Path 'foo.txt' does not exist

And then another idea just occurred to me which sounds kind of fun, and
I might want to work on it for giggles. A "working copy daemon", that
runs against a working copy and monitors the kernel file event
notification mechanism and makes the appropriate svn modifications.

On Tue, 2005-04-26 at 09:24 -0500, Ben Collins-Sussman wrote:
> On Apr 26, 2005, at 8:41 AM, Alexander.Schulz@mummert.de wrote:
> >
> > Hello,
> >
> > I have a problem with deleting and adding files with subversion.
> >
> > Example:
> > I have a directory "mydir" with is checked out with subversion.
> > In "mydir" there are 2 files, file "A" and file "B". Now I create a
> > new file "C" and delete file "A". I delete it with filesystem utils,
> > NOT with "svn delete A".
> >
> > Now I want to run a script that searches for all deleted and all new
> > files (recursive) like "svn status" does and executes the "svn delete"
> > and "svn add" automatically.
> >
> > Please can someone tell me if this functionality is included in
> > subversion or if there are scripts that can do this on MS Windows XP.
> FAQ: http://subversion.tigris.org/faq.html#wc-change-detection
> ---------------------------------------------------------------------
> 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 Tue Apr 26 16:55:03 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.