Author: dsahlberg
Date: Sun Apr 28 08:21:45 2024
New Revision: 1917397

URL: http://svn.apache.org/viewvc?rev=1917397&view=rev
Log:
svn_apply_autoprops: Support @-containing filenames.
'@' is used by the peg revision syntax. If a filename contains '@' an 
additional '@' must be appended at the
end of the filename, see the Subversion book: 
https://svnbook.red-bean.com/en/1.7/svn.advanced.pegrevs.html


* contrib/client-side/svn_apply_autoprops.py
  (filter_walk): Append '@' to filenames containing '@'.

Patch by: Khairul Azhar Kasmiran <[email protected]>

Discussion on dev@:



Modified:
    subversion/trunk/contrib/client-side/svn_apply_autoprops.py

Modified: subversion/trunk/contrib/client-side/svn_apply_autoprops.py
URL: 
http://svn.apache.org/viewvc/subversion/trunk/contrib/client-side/svn_apply_autoprops.py?rev=1917397&r1=1917396&r2=1917397&view=diff
==============================================================================
--- subversion/trunk/contrib/client-side/svn_apply_autoprops.py (original)
+++ subversion/trunk/contrib/client-side/svn_apply_autoprops.py Sun Apr 28 
08:21:45 2024
@@ -147,6 +147,8 @@ def filter_walk(autoprop_lines, dirname,
     for prop in prop_list:
       command = ['svn', 'propset', prop[0], prop[1]]
       for f in matching_filenames:
+       if '@' in f:
+         f += '@'
         command += ["%s/%s" % (dirname, f)]
 
       status = subprocess.call(command)


Reply via email to