check xlink on copy

This commit is contained in:
ed committed 2026-09-16 22:35:11 +00:00
1 parent 735d6e00de
commit 947d73eeb6
1 file changed
+6
+6
View File
@@ -4667,6 +4667,12 @@ class Up2k(object):
self.log("not found in src db: %r" % (svp,))
try:
if svn_dbv != dvn and not (
"xlink" in dvn.flags
or "reflink" in dvn.flags
or "hardlinkonly" in dvn.flags
):
raise OSError(errno.EXDEV, "different volumes")
if is_link and st != stl:
# relink non-broken symlinks to still work after the move,
# but only resolve 1st level to maintain relativity