diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-07-15 13:10:57 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-07-15 13:10:57 +0000 |
commit | bf1960a45f00de9682b56df5f55745fadf470545 (patch) | |
tree | 384c92e198280ba643933721ee5603a22dc4a674 /usr.bin/cvs/file.c | |
parent | 5e32a32fffe364daab5a3250b039eebb642eb682 (diff) |
if the file has been added but is not on disk make sure we can pick it up
as being "added".
fixes the log command on our server-side for added files.
tested & ok xsa@
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r-- | usr.bin/cvs/file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index 23f6fc261ac..ee0ac071ffe 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.95 2005/07/07 20:24:35 joris Exp $ */ +/* $OpenBSD: file.c,v 1.96 2005/07/15 13:10:56 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -1131,6 +1131,8 @@ cvs_file_lget(const char *path, int flags, CVSFILE *parent, struct cvs_ent *ent) cfp->cf_cvstat = CVS_FST_REMOVED; else if (ent->ce_status == CVS_ENT_UPTODATE) cfp->cf_cvstat = CVS_FST_UPTODATE; + else if (ent->ce_status == CVS_ENT_ADDED) + cfp->cf_cvstat = CVS_FST_ADDED; else cfp->cf_cvstat = CVS_FST_LOST; } |