#
# The "src status" command needs to be fast so that Emacs VC won't be sluggish.
# It's written to only have to access the inodes of each master and workfile,
-# not the files themselves. The central trick is the use of utimes(2) to
+# not the files themselves. The central trick is the use of utime(2) to
# set the master's modification time just after the workfile is checked out;
# thus, to distinguish between U and M status all we need to do is compare
# modtimes.
backend.checkout(arg, revision)
# We change access and modification times of
# both history and workfile to avoid a race
- # condition if src status is donw within a second.
+ # condition if src status is done within a second.
st = os.stat(backend.history(arg))
os.utime(backend.history(arg), (st.st_atime, st.st_mtime))
os.utime(arg, (st.st_atime-1, st.st_mtime-1))
pairs.append((fn, "?"))
elif not os.path.exists(fn):
pairs.append((fn, "!"))
- # Relies on the fact that we touch the file with utimes(2)
+ # Relies on the fact that we touch the file with utime(2)
# each time it's checked out.
elif os.path.getmtime(fn) > os.path.getmtime(backend.history(fn)):
pairs.append((fn, "M"))