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
83220ab0
Commit
83220ab0
authored
Dec 26, 2002
by
André Spiegel
Browse files
(vc-cvs-checkout): Handle t argument for REV.
parent
4279775b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
22 deletions
+23
-22
lisp/vc-cvs.el
lisp/vc-cvs.el
+23
-22
No files found.
lisp/vc-cvs.el
View file @
83220ab0
...
...
@@ -5,7 +5,7 @@
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
;; $Id: vc-cvs.el,v 1.4
8
2002/10/1
1 06
:4
7
:4
9 miles
Exp $
;; $Id: vc-cvs.el,v 1.4
9
2002/10/1
7 15
:4
3
:4
8 lektu
Exp $
;; This file is part of GNU Emacs.
...
...
@@ -421,7 +421,8 @@ REV is the revision to check out into WORKFILE."
(
current-buffer
)
0
file
"-Q"
; suppress diagnostic output
"update"
(
and
rev
(
not
(
string=
rev
""
))
(
and
(
stringp
rev
)
(
not
(
string=
rev
""
))
(
concat
"-r"
rev
))
"-p"
switches
)))
...
...
@@ -438,26 +439,26 @@ REV is the revision to check out into WORKFILE."
(
if
(
and
(
file-exists-p
file
)
(
not
rev
))
;; If no revision was specified, just make the file writable
;; if necessary (using `cvs-edit' if requested).
(
and
editable
(
not
(
eq
(
vc-cvs-checkout-model
file
)
'implicit
))
(
if
vc-cvs-use-edit
(
vc-cvs-command
nil
0
file
"edit"
)
(
set-file-modes
file
(
logior
(
file-modes
file
)
128
))
(
if
file-buffer
(
toggle-read-only
-1
))))
;; Check out a particular version (or recreate the file).
(
vc-file-setprop
file
'vc-workfile-version
nil
)
(
apply
'vc-cvs-command
nil
0
file
(
and
editable
(
or
(
not
(
file-exists-p
file
))
(
not
(
eq
(
vc-cvs-checkout-model
file
)
'implicit
)))
"-w"
)
"update"
;; default for verbose checkout: clear the sticky tag so
;; that the actual update will get the head of the trunk
(
if
(
or
(
not
rev
)
(
string=
rev
""
))
"-A"
(
concat
"-r"
rev
))
switches
))))
(
and
editable
(
not
(
eq
(
vc-cvs-checkout-model
file
)
'implicit
))
(
if
vc-cvs-use-edit
(
vc-cvs-command
nil
0
file
"edit"
)
(
set-file-modes
file
(
logior
(
file-modes
file
)
128
))
(
if
file-buffer
(
toggle-read-only
-1
))))
;; Check out a particular version (or recreate the file).
(
vc-file-setprop
file
'vc-workfile-version
nil
)
(
apply
'vc-cvs-command
nil
0
file
(
and
editable
(
or
(
not
(
file-exists-p
file
))
(
not
(
eq
(
vc-cvs-checkout-model
file
)
'implicit
)))
"-w"
)
"update"
;; default for verbose checkout: clear the sticky tag so
;; that the actual update will get the head of the trunk
(
if
(
or
(
not
rev
)
(
eq
rev
t
)
(
string=
rev
""
))
"-A"
(
concat
"-r"
rev
))
switches
))))
(
vc-mode-line
file
)
(
message
"Checking out %s...done"
filename
)))))
...
...
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