]> thyrsus.com Git - src.git/commitdiff
Comment fixes.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 14 Nov 2014 07:46:27 +0000 (02:46 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 14 Nov 2014 07:46:27 +0000 (02:46 -0500)
src

diff --git a/src b/src
index b626c1bb3bed973ea071781604b4b95244149095..13ea4be33de6f2a93de0146099109454c1938f7e 100755 (executable)
--- a/src
+++ b/src
@@ -21,7 +21,7 @@
 #
 # 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.
@@ -887,7 +887,7 @@ def checkout_method(*args):
             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))
@@ -924,7 +924,7 @@ def status_method(*args):
                 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"))