diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2008-02-09 14:03:21 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2008-02-09 14:03:21 +0000 |
commit | c7228a1903a177a51210df19d874e0e1b2de6a21 (patch) | |
tree | fdc9cc203d541f4d12946209c3ccef31c078e024 /usr.bin/cvs/getlog.c | |
parent | 138924ed53f662e659d3a013552fd6b48793259d (diff) |
- always remove the additional .0 from magic branches, even when
running the log command.
- change getlog.c so it will add any .0 for magic branches in its output
if required
less confusing for rcs_translate_tag();
Diffstat (limited to 'usr.bin/cvs/getlog.c')
-rw-r--r-- | usr.bin/cvs/getlog.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/cvs/getlog.c b/usr.bin/cvs/getlog.c index 3a55d986c10..4ed1f3d9ee7 100644 --- a/usr.bin/cvs/getlog.c +++ b/usr.bin/cvs/getlog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getlog.c,v 1.84 2008/02/04 21:25:32 tobias Exp $ */ +/* $OpenBSD: getlog.c,v 1.85 2008/02/09 14:03:20 joris Exp $ */ /* * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> * Copyright (c) 2006 Joris Vink <joris@openbsd.org> @@ -35,7 +35,7 @@ void cvs_log_local(struct cvs_file *); static void log_rev_print(struct rcs_delta *); int runflags = 0; -char *logrev = NULL; +char *logrev = NULL; char *slist = NULL; char *wlist = NULL; @@ -66,7 +66,6 @@ cvs_getlog(int argc, char **argv) char *arg = "."; struct cvs_recursion cr; - rcsnum_flags |= RCSNUM_NO_MAGIC; flags = CR_RECURSE_DIRS; while ((ch = getopt(argc, argv, cvs_cmdop == CVS_OP_LOG ? @@ -245,6 +244,9 @@ cvs_log_local(struct cvs_file *cf) if (!(runflags & L_NOTAGS)) { cvs_printf("symbolic names:\n"); TAILQ_FOREACH(sym, &(cf->file_rcs->rf_symbols), rs_list) { + if (RCSNUM_ISBRANCH(sym->rs_num)) + rcsnum_addmagic(sym->rs_num); + cvs_printf("\t%s: %s\n", sym->rs_name, rcsnum_tostr(sym->rs_num, numb, sizeof(numb))); } |