summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2008-06-10 04:01:42 +0000
committerJoris Vink <joris@cvs.openbsd.org>2008-06-10 04:01:42 +0000
commit05ebfba6270efe6effec6f2ca767f8f308afefdc (patch)
tree86be001869b63831b3a6ec10a81db4784640d531
parentc918fcb911296db61fe2488385fdbf5e8a132ac4 (diff)
append "- Imported sources" for imports.
-rw-r--r--usr.bin/cvs/trigger.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/cvs/trigger.c b/usr.bin/cvs/trigger.c
index a45e8ac7d86..4040e351869 100644
--- a/usr.bin/cvs/trigger.c
+++ b/usr.bin/cvs/trigger.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trigger.c,v 1.7 2008/06/10 03:55:50 joris Exp $ */
+/* $OpenBSD: trigger.c,v 1.8 2008/06/10 04:01:41 joris Exp $ */
/*
* Copyright (c) 2008 Tobias Stoeckmann <tobias@openbsd.org>
* Copyright (c) 2008 Jonathan Armani <dbd@asystant.net>
@@ -89,6 +89,14 @@ expand_args(BUF *buf, struct file_info_list *file_info, const char *repo,
return (0);
}
+ if (cvs_cmdop == CVS_OP_IMPORT) {
+ cvs_buf_append(buf, "- Imported sources",
+ strlen("- Imported sources"));
+ if (quote)
+ cvs_buf_putc(buf, '"');
+ return (0);
+ }
+
for (;;) {
for (p = format; *p != '\0';) {
val = NULL;