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

Re: How to distinguish between a newly added file and a copied/moved file in the pre-commit hook?

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2005-06-01 16:36:32 CEST

On Jun 1, 2005, at 8:13 AM, Greg Thomas wrote:

> On Wed, 01 Jun 2005 12:28:26 +0200, Ronny Schuetz
> <usenet-01@groombridge34.de> wrote:
>
>
>> Is there any way to get this information from a pre-commit hook?
>>
>
> svnlook changed will show D for deleted files, and A for added files.
> As a rename is a D followed by an A, you'll need to search all A files
> to see if there is a corresponding D file. If there is, you can skip
> the check.

Just curious.. if it's a rename, how do you know if the 'D file' is
corresponding to the 'A file' or not? Presumably the paths are
different so there must be something else to 'link' them.

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 1 16:38:13 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.