Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
403d549c
Commit
403d549c
authored
Jul 31, 1997
by
Richard M. Stallman
Browse files
(vc-checkout-model): For CVS, look at
permissions to see if a file is "watched".
parent
77e1b3d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
lisp/vc-hooks.el
lisp/vc-hooks.el
+10
-1
No files found.
lisp/vc-hooks.el
View file @
403d549c
...
...
@@ -514,7 +514,16 @@ For CVS, the full name of CVS/Entries is returned."
(
vc-file-getprop
file
'vc-checkout-model
))))
((
eq
(
vc-backend
file
)
'CVS
)
(
vc-file-setprop
file
'vc-checkout-model
(
if
(
getenv
"CVSREAD"
)
'manual
'implicit
))))))
(
cond
((
getenv
"CVSREAD"
)
'manual
)
;; If the file is not writeable, this is probably because the
;; file is being "watched" by other developers. Use "manual"
;; checkout in this case. (If vc-mistrust-permissions was t,
;; we actually shouldn't trust this, but there is no other way
;; to learn this from CVS at the moment (version 1.9).)
((
string-match
"r-..-..-."
(
nth
8
(
file-attributes
file
)))
'manual
)
(
t
'implicit
)))))))
;;; properties indicating the locking state
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment