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

Re: Detect file added with history using svnlook

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Mon, 14 Apr 2008 11:42:03 -0700

On Mon, Apr 14, 2008 at 5:01 AM, Olivier Sannier <obones_at_free.fr> wrote:

> Hi all,
> In a pre-commit hook, I'm using svnlook to see what files were added and
> if the newly added files do not respect a set of rule, I fail the commit.
> However, I would like those rules to only apply for files added to the
> repository, not files added with history (because of a move or copy).
> Right now, I read the first two characters of the svnlook output, but
> contrary to svnlog, there is no A+ marker to indicate that the file was
> added with history.
> Did I miss something?

Use the --copy-info option of the 'svnlook changed' command.

Received on 2008-04-14 20:42:29 CEST

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