• Michael Albinus's avatar
    Improve Tramp's caching · 6c1d0d53
    Michael Albinus authored
    * lisp/net/tramp.el (tramp-handle-add-name-to-file)
    (tramp-handle-write-region):
    * lisp/net/tramp-adb.el (tramp-adb-handle-make-directory)
    (tramp-adb-handle-delete-directory)
    (tramp-adb-handle-delete-file, tramp-adb-handle-write-region)
    (tramp-adb-handle-set-file-modes)
    (tramp-adb-handle-set-file-times, tramp-adb-handle-copy-file)
    (tramp-adb-handle-rename-file):
    * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file)
    (tramp-gvfs-handle-delete-directory)
    (tramp-gvfs-handle-delete-file)
    (tramp-gvfs-handle-make-directory)
    (tramp-gvfs-handle-set-file-modes)
    (tramp-gvfs-handle-set-file-times, tramp-gvfs-set-file-uid-gid):
    * lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file)
    (tramp-rclone-handle-delete-directory)
    (tramp-rclone-handle-delete-file):
    * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link)
    (tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
    (tramp-sh-handle-add-name-to-file)
    (tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file)
    (tramp-sh-handle-delete-directory, tramp-sh-handle-delete-file)
    (tramp-sh-handle-write-region):
    * lisp/net/tramp-smb.el (tramp-smb-handle-add-name-to-file)
    (tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
    (tramp-smb-handle-delete-directory)
    (tramp-smb-handle-delete-file)
    (tramp-smb-handle-make-directory-internal)
    (tramp-smb-handle-make-symbolic-link)
    (tramp-smb-handle-rename-file, tramp-smb-handle-write-region):
    * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-add-name-to-file)
    (tramp-sudoedit-do-copy-or-rename-file)
    (tramp-sudoedit-handle-delete-directory)
    (tramp-sudoedit-handle-delete-file)
    (tramp-sudoedit-handle-set-file-modes)
    (tramp-sudoedit-handle-set-file-times)
    (tramp-sudoedit-handle-make-symbolic-link): Do not flush all file
    properties of upper directory.
    
    * lisp/net/tramp-cache.el (tramp-flush-file-upper-properties):
    New defun.
    (tramp-flush-file-properties, tramp-flush-directory-properties):
    Use it.
    
    * test/lisp/net/tramp-tests.el (tramp-time-diff): Declare.
    (tramp--test-file-attributes-equal-p): Handle also modification
    and status change time.
    6c1d0d53
tramp-rclone.el 24 KB