]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-sccs-state-heuristic): Use file-attributes with ID-FORMAT
authorAndré Spiegel <spiegel@gnu.org>
Sun, 22 Jan 2006 16:10:07 +0000 (16:10 +0000)
committerAndré Spiegel <spiegel@gnu.org>
Sun, 22 Jan 2006 16:10:07 +0000 (16:10 +0000)
`string'.  This allows us to get rid of `vc-user-login-name UID'.

lisp/vc-sccs.el

index 8f00e1df6277ef0527effc75a82213d2f2ba60fd..c4047d1b3eccf28b9e06bde1ffb204e9946489fa 100644 (file)
@@ -122,15 +122,15 @@ For a description of possible values, see `vc-check-master-templates'."
       ;; We have to be careful not to exclude files with execute bits on;
       ;; scripts can be under version control too.  Also, we must ignore the
       ;; group-read and other-read bits, since paranoid users turn them off.
-      (let* ((attributes (file-attributes file))
-             (owner-uid  (nth 2 attributes))
+      (let* ((attributes  (file-attributes file 'string))
+             (owner-name  (nth 2 attributes))
              (permissions (nth 8 attributes)))
        (if (string-match ".r-..-..-." permissions)
             'up-to-date
           (if (string-match ".rw..-..-." permissions)
               (if (file-ownership-preserved-p file)
                   'edited
-                (vc-user-login-name owner-uid))
+                owner-name)
             ;; Strange permissions.
             ;; Fall through to real state computation.
             (vc-sccs-state file))))