Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/cvslatest print only the latest entry for debugging.



details:   https://anonhg.NetBSD.org/src/rev/58ef9a3c5de4
branches:  trunk
changeset: 819829:58ef9a3c5de4
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 19 01:48:00 2016 +0000

description:
print only the latest entry for debugging.

diffstat:

 usr.bin/cvslatest/cvslatest.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b35ebe5b542c -r 58ef9a3c5de4 usr.bin/cvslatest/cvslatest.c
--- a/usr.bin/cvslatest/cvslatest.c     Mon Dec 19 01:37:30 2016 +0000
+++ b/usr.bin/cvslatest/cvslatest.c     Mon Dec 19 01:48:00 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cvslatest.c,v 1.2 2016/01/24 20:14:44 christos Exp $   */
+/*     $NetBSD: cvslatest.c,v 1.3 2016/12/19 01:48:00 christos Exp $   */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: cvslatest.c,v 1.2 2016/01/24 20:14:44 christos Exp $");
+__RCSID("$NetBSD: cvslatest.c,v 1.3 2016/12/19 01:48:00 christos Exp $");
 
 /*
  * Find the latest timestamp in a set of CVS trees, by examining the
@@ -120,7 +120,7 @@
                        lat->time = t;
                        snprintf(lat->path, sizeof(lat->path),
                            "%s/%s", repo, fn);
-                       if (debug)
+                       if (debug > 1)
                                printlat(lat);
                }
        }



Home | Main Index | Thread Index | Old Index