Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
a63471af
Commit
a63471af
authored
35 years ago
by
ch
Browse files
Options
Downloads
Patches
Plain Diff
Added code to utimes(2) the user's file after check in.
parent
09e670f9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hemlock/rcs.lisp
+31
-7
31 additions, 7 deletions
hemlock/rcs.lisp
with
31 additions
and
7 deletions
hemlock/rcs.lisp
+
31
−
7
View file @
a63471af
;;; -*- Package: HEMLOCK; Mode: Lisp -*-
;;; -*- Package: HEMLOCK; Mode: Lisp -*-
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/hemlock/rcs.lisp,v 1.
7
1990/03/0
2 23:29:08
ch Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/hemlock/rcs.lisp,v 1.
8
1990/03/0
3 00:01:15
ch Exp $
;;;
;;;
;;; Various commands for dealing with RCS under hemlock.
;;; Various commands for dealing with RCS under hemlock.
;;;
;;;
...
@@ -133,12 +133,9 @@
...
@@ -133,12 +133,9 @@
(
do-recursive-edit
)
(
do-recursive-edit
)
(
message
"Checking in ~A ..."
(
namestring
pathname
))
(
message
"Checking in ~A ..."
(
namestring
pathname
))
(
in-directory
pathname
(
let
((
log-stream
(
make-hemlock-region-stream
(
do-command
"rcsci"
`
(
,@
(
if
keep-lock
'
(
"-l"
))
(
buffer-region
log-buffer
))))
"-u"
(
sub-check-in-file
pathname
keep-lock
log-stream
))
,
(
file-namestring
pathname
))
:input
(
make-hemlock-region-stream
(
buffer-region
log-buffer
))))
(
invoke-hook
rcs-check-in-file-hook
buffer
pathname
)
(
invoke-hook
rcs-check-in-file-hook
buffer
pathname
)
nil
)
nil
)
(
editor-error
"Someone deleted the RCS Log Entry buffer."
))
(
editor-error
"Someone deleted the RCS Log Entry buffer."
))
...
@@ -146,6 +143,33 @@
...
@@ -146,6 +143,33 @@
(
setf
allow-delete
t
)
(
setf
allow-delete
t
)
(
delete-buffer-if-possible
buffer
))))
(
delete-buffer-if-possible
buffer
))))
(
defun
sub-check-in-file
(
pathname
keep-lock
log-stream
)
(
let*
((
filename
(
file-namestring
pathname
))
(
rcs-filename
(
concatenate
'simple-string
"./RCS/"
filename
",v"
)))
(
in-directory
pathname
(
do-command
"rcsci"
`
(
,@
(
if
keep-lock
'
(
"-l"
))
"-u"
,
(
file-namestring
pathname
))
:input
log-stream
)
;;
;; Set the times on the user's file to be equivalent to that of
;; the rcs file.
(
multiple-value-bind
(
dev
ino
mode
nlink
uid
gid
rdev
size
atime
mtime
)
(
mach:unix-stat
rcs-filename
)
(
declare
(
ignore
mode
nlink
uid
gid
rdev
size
))
(
cond
(
dev
(
multiple-value-bind
(
wonp
errno
)
(
mach:unix-utimes
rcs-filename
(
list
atime
mtime
))
(
unless
wonp
(
editor-error
"MACH:UNIX-UTIMES failed: ~A"
(
mach:get-unix-error-msg
errno
)))))
(
t
(
editor-error
"MACH:UNIX-STAT failed: ~A"
(
mach:get-unix-error-msg
ino
))))))))
;;;; Check Out
;;;; Check Out
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment