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
a93de381
Commit
a93de381
authored
Sep 16, 1996
by
André Spiegel
Browse files
(vc-find-cvs-master): Fixed handling of "locally added" files.
parent
b667752d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lisp/vc-hooks.el
lisp/vc-hooks.el
+8
-0
No files found.
lisp/vc-hooks.el
View file @
a93de381
...
...
@@ -785,6 +785,7 @@ For CVS, the full name of CVS/Entries is returned."
;; case-sensitively
(
setq
case-fold-search
nil
)
(
cond
;; normal entry
((
re-search-forward
(
concat
"^/"
(
regexp-quote
basename
)
"/\\([^/]*\\)/[^ /]* \\([A-Z][a-z][a-z]\\) *\\([0-9]*\\) \\([0-9]*\\):\\([0-9]*\\):\\([0-9]*\\) \\([0-9]*\\)"
)
...
...
@@ -814,6 +815,13 @@ For CVS, the full name of CVS/Entries is returned."
(
vc-file-setprop
file
'vc-checkout-time
mtime
)
(
vc-file-setprop
file
'vc-checkout-time
0
)))
(
throw
'found
(
cons
(
concat
dirname
"CVS/Entries"
)
'CVS
)))
;; entry for a "locally added" file (not yet committed)
((
re-search-forward
(
concat
"^/"
(
regexp-quote
basename
)
"/0/Initial "
)
nil
t
)
(
setq
case-fold-search
fold
)
;; restore the old value
(
vc-file-setprop
file
'vc-checkout-time
0
)
(
vc-file-setprop
file
'vc-workfile-version
"0"
)
(
throw
'found
(
cons
(
concat
dirname
"CVS/Entries"
)
'CVS
)))
(
t
(
setq
case-fold-search
fold
)
;; restore the old value
nil
)))
(
kill-buffer
buffer
)))))
...
...
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