]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-rcs-fetch-master-state, vc-rcs-consult-headers): Pass FILE to
authorAndré Spiegel <spiegel@gnu.org>
Fri, 27 Jan 2006 19:12:13 +0000 (19:12 +0000)
committerAndré Spiegel <spiegel@gnu.org>
Fri, 27 Jan 2006 19:12:13 +0000 (19:12 +0000)
vc-user-login-name.

lisp/vc-rcs.el

index 0729064c72bc0091687d014912c90994adb5f274..bfb66e8a5cf630125f9a5a8ba184204a51945d5d 100644 (file)
@@ -818,7 +818,7 @@ file."
             'needs-patch))
         ;; locked by the calling user
         ((and (stringp locking-user)
-              (string= locking-user (vc-user-login-name)))
+              (string= locking-user (vc-user-login-name file)))
          (if (or (eq (vc-checkout-model file) 'locking)
                  workfile-is-latest
                  (vc-rcs-latest-on-branch-p file workfile-version))
@@ -907,7 +907,8 @@ Returns: nil            if no headers were found
          (vc-file-setprop file 'vc-state
                           (cond
                            ((eq locking-user 'none) 'up-to-date)
-                           ((string= locking-user (vc-user-login-name)) 'edited)
+                           ((string= locking-user (vc-user-login-name file)) 
+                             'edited)
                            (t locking-user)))
          ;; If the file has headers, we don't want to query the
          ;; master file, because that would eliminate all the