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

RE: Admin only move / handling manual moves

From: Messer, Nathan <Nathan.Messer_at_Teradyne.com>
Date: 2006-03-17 14:34:17 CET

>> I'm trying to separate out the actual moving/renaming etc of files,
>> from informing subversion about that. It's so that the integration
>> with the system that currently handles all that is simpler.

> So you want, for example:

> mv foo bar
> inform-svn-about-mv foo bar

That's exactly what I want, yes.

> It should be possible, if perhaps a bit ugly, to write inform-svn-
> about-mv something like this:

> #!/bin/sh
> mv $2 $1
> svn mv $1 $2

Did you mean
mv $1 $2
svn mv $1 $2

?

If so, unfortunately I tried that, and the svn mv command fails if the
file is already gone. It throws an error that the source path doesn't
exist, and using --force it doesn't work.

I'm debating writing a little utility that can do an inform_copy and an
inform_delete, by copying the tag in the entries file, adding the
appropriate attributes, and copying the pristine text and props files
and the local props file.

From what I can make out, I should have to add the following for a copy:

   copied="true"
   copyfrom-rev="591"
   schedule="add"
   copyfrom-url="http://localhost/repo/FROM/MyTextDoc.txt"

and the following for a delete:

        schedule="delete"

But I'd like to avoid touching the .svn directory myself if there's
anything else that can do this for me.

Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 17 14:37:17 2006

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