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

Re: [PATCH] contrib/client-side/asvn: only check files, that are part of the subversion repository

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 6 May 2010 16:06:19 +0200

On Thu, May 06, 2010 at 03:16:38PM +0200, Jörg Steffens wrote:
> [[[
> reduces error messages by checking svn return code
>
> * contrib/client-side/asvn
> (recordpermissions): skip files where "svn propget" returns an error.
> It is assumed that these files do not belong to the svn repository
>
> patch by joerg.steffens < at > dass-it.de
> ]]]

> Index: contrib/client-side/asvn
> ===================================================================
> --- contrib/client-side/asvn (Revision 941610)
> +++ contrib/client-side/asvn (Arbeitskopie)
> @@ -335,7 +335,11 @@
> fi
>
> # see if the properties have changed.
> - if [ "`$SVN propget $FILE_PROP \"$dir/$file\"`" != "$info" ]
> + FILE_PROP_VALUE=`$SVN propget $FILE_PROP "$dir/$file" 2>/dev/null`
> + if [ $? -ne 0 ]; then

'if [ x ]; then' is not consistent with the rest of the file.
Usually 'then' is on a line of its own, like this:

if [ x ]
then

> + # $file is not handled by svn, skipping

Let's zap the above comment,

> + echo "skipping property $FILE_PROP for $dir/$file"

and change this messsage to:

 $dir/$file has no $FILE_PROP property or is unversioned; skipping

Then I'd be happy to commit this.

Thanks,
Stefan

> + elif [ "$FILE_PROP_VALUE" != "$info" ]
> then
> if [ "$CHECKIN" = "true" ]
> then
Received on 2010-05-06 16:07:13 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.