aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2008-05-05 06:38:04 +0000
committerStefan Monnier <[email protected]>2008-05-05 06:38:04 +0000
commit11a36f646ec2f2e9a479e1d1830de01feda92c2e (patch)
treead5e77a59a1eef93da84dde769089863ccbe2e2d
parent8653eee82efbe2b3b14f671f3f991c356c2a5065 (diff)
(vc-rcs-fetch-master-state): Fix inf-loop.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc-rcs.el3
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0b4bbaa8fd..eea22d639d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2008-05-05 Stefan Monnier <[email protected]>
+
+ * vc-rcs.el (vc-rcs-fetch-master-state): Fix inf-loop.
+
2008-05-05 Tom Tromey <[email protected]>
* smerge-mode.el (smerge-start-session): Don't call smerge-next if
diff --git a/lisp/vc-rcs.el b/lisp/vc-rcs.el
index 84cd589d4b..3d9fe2be46 100644
--- a/lisp/vc-rcs.el
+++ b/lisp/vc-rcs.el
@@ -893,7 +893,8 @@ file."
;; 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