You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Khairul Azhar Kasmiran <ka...@gmail.com> on 2024/04/23 10:46:41 UTC
[PATCH] Make svn_apply_autoprops.py Windows-compatible
Hi everyone!
This is a patch to make `contrib/client-side/svn_apply_autoprops.py`
Windows-compatible -- I have just found out that `git svn` doesn't
honor autoprops.
The changes are:
1. Replacing `os.spawnvp()` with `subprocess.call()` since
`os.spawnvp()` isn't supported on Windows.
2. Using `ON` instead of `*` for boolean properties like
`svn:executable` since for some reason, `*` becomes a wildcard on
Windows.
I have tested this with Python 2.7.18 on Windows and Ubuntu 22.04.4.
[[[
Make svn_apply_autoprops.py Windows-compatible.
* contrib/client-side/svn_apply_autoprops.py
(process_autoprop_lines): Use `ON` instead of `*` for boolean properties.
(filter_walk): Replace `os.spawnvp()` with `subprocess.call()`.
]]]
Best regards,
Khairul