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

Re: [PATCH] don't do autoprops on symbolic links

From: Wei-Yin Chen <wychen_at_video.ee.ntu.edu.tw>
Date: Sat, 4 Sep 2010 20:25:12 +0800

Dear Gavin,

Thanks. The attachment was in my sent box, but it's absent in the mailing
archive. Don't know why.

Per Branko's suggestion, I'm using join this time. In case the attachment
gets missing again, it is also embedded in the mail body.

Regards,
Wei-Yin

--- svn_apply_autoprops.py.old 2010-09-04 20:16:28.000000000 +0800
+++ svn_apply_autoprops.py.nolink 2010-09-04 20:17:20.000000000 +0800
@@ -122,10 +122,12 @@
   for autoprops_line in autoprop_lines:
     fnmatch_str = autoprops_line[0]
     prop_list = autoprops_line[1]

     matching_filenames = fnmatch.filter(filenames, fnmatch_str)
+ matching_filenames = [f for f in matching_filenames \
+ if not os.path.islink(os.path.join(dirname, f))]
     if not matching_filenames:
       continue

     for prop in prop_list:
       command = ['svn', 'propset', prop[0], prop[1]]

On Sat, Sep 4, 2010 at 4:08 PM, Gavin Beau Baumanis
<gavin_at_thespidernet.com>wrote:

> Hi Wei-Yin,
>
> Just thought I would mention that you did not attach your updated patch.
>
>
> Gavin "Beau" Baumanis
> E: gavin_at_thespidernet.com
>
Received on 2010-09-04 14:26:12 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.