From: André Spiegel Date: Sun, 22 Jan 2006 16:08:48 +0000 (+0000) Subject: (vc-rcs-state-heuristic): Use file-attributes with ID-FORMAT X-Git-Tag: emacs-pretest-22.0.90~4635 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b010f88755f1c6db321eac9606b0464b5c660949;p=emacs.git (vc-rcs-state-heuristic): Use file-attributes with ID-FORMAT `string'. This allows us to get rid of `vc-user-login-name UID'. --- diff --git a/lisp/vc-rcs.el b/lisp/vc-rcs.el index e301804cf17..0729064c72b 100644 --- a/lisp/vc-rcs.el +++ b/lisp/vc-rcs.el @@ -152,8 +152,8 @@ For a description of possible values, see `vc-check-master-templates'." (vc-file-setprop file 'vc-checkout-model 'locking)))) state) (if (not (vc-mistrust-permissions file)) - (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))) (cond ((string-match ".r-..-..-." permissions) (vc-file-setprop file 'vc-checkout-model 'locking) @@ -162,7 +162,7 @@ For a description of possible values, see `vc-check-master-templates'." (if (eq (vc-checkout-model file) 'locking) (if (file-ownership-preserved-p file) 'edited - (vc-user-login-name owner-uid)) + owner-name) (if (vc-rcs-workfile-is-newer file) 'edited 'up-to-date)))