# HG changeset patch # User Stefan Monnier # Date 1209969484 0 # Node ID 9cc7bc51e055bb2a5e782684062137ecbd223dfc # Parent 5eb3ee73ed4e614e22b6bbca8e452c77143e45a2 (vc-rcs-fetch-master-state): Fix inf-loop. diff -r 5eb3ee73ed4e -r 9cc7bc51e055 lisp/ChangeLog --- a/lisp/ChangeLog Mon May 05 06:16:20 2008 +0000 +++ b/lisp/ChangeLog Mon May 05 06:38:04 2008 +0000 @@ -1,3 +1,7 @@ +2008-05-05 Stefan Monnier + + * vc-rcs.el (vc-rcs-fetch-master-state): Fix inf-loop. + 2008-05-05 Tom Tromey * smerge-mode.el (smerge-start-session): Don't call smerge-next if diff -r 5eb3ee73ed4e -r 9cc7bc51e055 lisp/vc-rcs.el --- a/lisp/vc-rcs.el Mon May 05 06:16:20 2008 +0000 +++ b/lisp/vc-rcs.el Mon May 05 06:38:04 2008 +0000 @@ -893,7 +893,8 @@ ;; locked by the calling user ((and (stringp locking-user) (string= locking-user (vc-user-login-name file))) - (if (or (eq (vc-rcs-checkout-model (list file)) 'locking) + ;; Don't call `vc-rcs-checkout-model' to avoid inf-looping. + (if (or (eq (vc-file-getprop file 'vc-checkout-model) 'locking) workfile-is-latest (vc-rcs-latest-on-branch-p file working-revision)) 'edited