[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: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-03-17 12:15:42 CET

On Mar 17, 2006, at 08:58, Messer, Nathan wrote:

>>> I’m looking for a way to tell subversion that I have moved a
>>> file from one place to another, after I’ve done it.
>
> Thanks, I’d not thought of copying specific versions, that might do
> the job, although it’s not as clean as what I’d ideally like to do.
>
>
>
> 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

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

Robustness, such as handling paths with spaces or behaving more
gracefully in the event that $1 already exists again by the time the
script is run to prevent it from being overwritten, is left as an
exercise for the reader.

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

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.