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

Re: Detect File Move?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-08-30 14:45:45 CEST

On Aug 30, 2005, at 7:35 AM, Goddard Lee wrote:
> Sorry: better phrased with svn-terminology, I think, is: is there a
> way
> for hook to know what sub-command will be/is being/has been executed?
> If I renamed svn to svn-real, my svn would see its first agument
> as, for
> example, 'mv' ...?

No, there's no way to know. Somebody could have run any of the
following commands, and they'd all result in the exact same commit:

     svn mv URL-of-A URL-of-B
     svn mv A B; svn commit
     svn copy A B; svn rm A; svn commit
     http MOVE request sent from a generic DAV client

These actions all send the exact same commands to the server: they
build a commit transaction which copies something, then deletes
something. There's no way to know what the exact client commands were.

www.collab.net  <>  CollabNet  |  Distributed Development On Demand
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 30 14:57:28 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.