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
967bf297
Commit
967bf297
authored
Feb 24, 2008
by
Glenn Morris
Browse files
(vc-cvs-register): Fix registering of directories in multiple file case.
parent
59e9dbbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/vc-cvs.el
lisp/vc-cvs.el
+12
-9
No files found.
lisp/ChangeLog
View file @
967bf297
2008-02-24 Glenn Morris <rgm@gnu.org>
* vc-cvs.el (vc-cvs-register): Fix registering of directories in
multiple file case.
* vc-mcvs.el (vc-mcvs-register): Fix let-binding (for use of `file').
2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
...
...
lisp/vc-cvs.el
View file @
967bf297
...
...
@@ -298,15 +298,18 @@ COMMENT can be used to provide an initial description of FILES.
`vc-register-switches' and `vc-cvs-register-switches' are passed to
the CVS command (in that order)."
(
when
(
and
(
not
(
vc-cvs-responsible-p
file
))
(
vc-cvs-could-register
file
))
;; Register the directory if needed.
(
vc-cvs-register
(
directory-file-name
(
file-name-directory
file
))))
(
apply
'vc-cvs-command
nil
0
files
"add"
(
and
comment
(
string-match
"[^\t\n ]"
comment
)
(
concat
"-m"
comment
))
(
vc-switches
'CVS
'register
)))
;; Register the directories if needed.
(
let
(
dirs
)
(
dolist
(
file
files
)
(
and
(
not
(
vc-cvs-responsible-p
file
))
(
vc-cvs-could-register
file
)
(
push
(
directory-file-name
(
file-name-directory
file
))
dirs
)))
(
if
dirs
(
vc-cvs-register
dirs
)))
(
apply
'vc-cvs-command
nil
0
files
"add"
(
and
comment
(
string-match
"[^\t\n ]"
comment
)
(
concat
"-m"
comment
))
(
vc-switches
'CVS
'register
)))
(
defun
vc-cvs-responsible-p
(
file
)
"Return non-nil if CVS thinks it is responsible for FILE."
...
...
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