[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: Olivier Sannier <obones_at_free.fr>
Date: Tue, 15 Apr 2008 15:40:01 +0200

Hari Kodungallur wrote:
>
> On Tue, Apr 15, 2008 at 12:06 AM, Olivier Sannier <obones_at_free.fr
> <mailto:obones_at_free.fr>> wrote:
> >
> >
> > Hari Kodungallur wrote:
> > On Mon, Apr 14, 2008 at 5:01 AM, Olivier Sannier <obones_at_free.fr
> <mailto: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.
> >
> > Rgds,
> > -Hari
> >
> > Thanks, but this seems to only be available in the 1.5 branch, which I
> > cannot use on production servers. Is there some undocumented
> equivalent in
> > the 1.4 versions ?
> >
>
> I know it is there in 1.4.x
>
> *hari_at_homubuntu:~$ svnlook --version*
> svnlook, version 1.4.4 (r25188)
> compiled Jul 29 2007, 18:51:42
>
> Copyright (C) 2000-2006 CollabNet.
> Subversion is open source software, see http://subversion.tigris.org/
> This product includes software developed by CollabNet
> (http://www.Collab.Net/).
>
> The following repository back-end (FS) modules are available:
>
> * fs_fs : Module for working with a plain file (FSFS) repository.
>
> *hari_at_homubuntu:~$ svnlook help changed*
> changed: usage: svnlook changed REPOS_PATH
>
> Print the paths that were changed.
>
> Valid options:
> -r [--revision] arg : specify revision number ARG
> -t [--transaction] arg : specify transaction name ARG
> --copy-info : show details for copies
>
>
> regards,
> -Hari

Ah yes indeed. But it is not documented in the 1.4 version of the SVN
book, hence the reason why I thought it was only available in the 1.5
versions
Received on 2008-04-15 15:40:35 CEST

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