summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/file.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-07-07 19:06:13 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-07-07 19:06:13 +0000
commit79d18ee9548dc0ec3869348f45d5c9ab9cceaec3 (patch)
treedd18f539295538460dcba0648175a0df0861421b /usr.bin/cvs/file.c
parentfc56c9c435f97f304d12b510047a9dd9ddf6acc0 (diff)
add a field to CVSFILE which holds the timestamp from the Entries file.
usefull for some commands. ok xsa@
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r--usr.bin/cvs/file.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index 66cda12878a..fb07d1feefc 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.93 2005/07/07 14:27:57 joris Exp $ */
+/* $OpenBSD: file.c,v 1.94 2005/07/07 19:06:12 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -358,9 +358,10 @@ cvs_file_copy(CVSFILE *orig)
cfp->cf_mode = orig->cf_mode;
cfp->cf_cvstat = orig->cf_cvstat;
- if (orig->cf_type == DT_REG)
+ if (orig->cf_type == DT_REG) {
+ cfp->cf_etime = orig->cf_etime;
cfp->cf_mtime = orig->cf_mtime;
- else if (orig->cf_type == DT_DIR) {
+ } else if (orig->cf_type == DT_DIR) {
/* XXX copy CVS directory attributes */
}
@@ -1104,6 +1105,8 @@ cvs_file_lget(const char *path, int flags, CVSFILE *parent, struct cvs_ent *ent)
cfp->cf_cvstat = CVS_FST_MODIFIED;
}
}
+
+ cfp->cf_etime = ent->ce_mtime;
}
} else {
if (ent == NULL) {