diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-11-27 16:02:53 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-11-27 16:02:53 +0000 |
commit | 786d357b477806ed662e9737bdee24cc9be48af5 (patch) | |
tree | 99d3d5b4623db4ce95e9eb23be22bfb6214bb01b | |
parent | ba059880d05cb8a122f8415dee2b92cb3ac6ad80 (diff) |
don't process the file if its status is FILE_UNLINK.
-rw-r--r-- | usr.bin/cvs/annotate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c index 9115feb651e..212ceee18ad 100644 --- a/usr.bin/cvs/annotate.c +++ b/usr.bin/cvs/annotate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: annotate.c,v 1.31 2006/11/15 16:18:38 xsa Exp $ */ +/* $OpenBSD: annotate.c,v 1.32 2006/11/27 16:02:52 xsa Exp $ */ /* * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> * @@ -118,7 +118,8 @@ cvs_annotate_local(struct cvs_file *cf) cvs_file_classify(cf, NULL, 0); - if (cf->file_status == FILE_UNKNOWN) + if (cf->file_status == FILE_UNKNOWN || + cf->file_status == FILE_UNLINK) return; cvs_printf("Annotations for %s", cf->file_name); @@ -140,6 +141,7 @@ cvs_annotate_local(struct cvs_file *cf) xfree(content); + /* XXX */ TAILQ_FOREACH(lp, &(lines->l_lines), l_list) { if (lp->l_line == NULL) continue; |