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
a3294a80
Commit
a3294a80
authored
Dec 26, 2002
by
André Spiegel
Browse files
(vc-rcs-checkout): Handle t argument for REV.
parent
83220ab0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
lisp/vc-rcs.el
lisp/vc-rcs.el
+19
-7
No files found.
lisp/vc-rcs.el
View file @
a3294a80
...
...
@@ -5,7 +5,7 @@
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
;; $Id: vc-rcs.el,v 1.3
0
2002/11/1
2
1
9:46:47 rost
Exp $
;; $Id: vc-rcs.el,v 1.3
1
2002/11/1
3
1
2:38:20 spiegel
Exp $
;; This file is part of GNU Emacs.
...
...
@@ -400,12 +400,24 @@ whether to remove it."
;; the writable workfile.
(
if
(
eq
(
vc-checkout-model
file
)
'implicit
)
"-f"
)
(
if
editable
"-l"
)
(
if
rev
(
concat
"-r"
rev
)
;; if no explicit revision was specified,
;; check out that of the working file
(
let
((
workrev
(
vc-workfile-version
file
)))
(
if
workrev
(
concat
"-r"
workrev
)
nil
)))
(
if
(
stringp
rev
)
;; a literal revision was specified
(
concat
"-r"
rev
)
(
let
((
workrev
(
vc-workfile-version
file
)))
(
if
workrev
(
concat
"-r"
(
if
(
not
rev
)
;; no revision specified:
;; use current workfile version
workrev
;; REV is t ...
(
if
(
vc-branch-p
workrev
)
;; ... go to head of current branch
(
vc-branch-part
workrev
)
;; ... go to head of trunk
(
vc-rcs-set-default-branch
file
nil
)
""
))))))
switches
)
;; determine the new workfile version
(
with-current-buffer
"*vc*"
...
...
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