GNU Info

Info Node: (tramp)Changed workfiles

(tramp)Changed workfiles


Next: Checking out files Prev: Remote Commands Up: Version Control
Enter node , (file) or (file)node

Detecting if the working file has changed
=========================================

As there is currently no way to get access to the mtime of a file on a
remote machine in a portable way, the `vc-workfile-unchanged-p'
function is advised to call an TRAMP specific function for remote files.

   The `tramp-vc-workfile-unchanged-p' function uses the functioning VC
diff functionality to determine if any changes have occurred between the
workfile and the version control master.

   This requires that a shell command be executed remotely, a process
that is notably heavier-weight than the mtime comparison used for local
files. Unfortunately, unless a portable solution to the issue is found,
this will remain the cost of remote version control.


automatically generated by info2www version 1.2.2.9