]> Cypherpunks repositories - gostls13.git/commitdiff
codereview: re-enable 15-second status prints
authorRuss Cox <rsc@golang.org>
Fri, 15 Mar 2013 20:33:04 +0000 (16:33 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 15 Mar 2013 20:33:04 +0000 (16:33 -0400)
Also print all status changes when using hg -v.

The start_status_thread call was lost during the refactoring in
https://golang.org/cl/5395044/diff/6006/lib/codereview/codereview.py
Oops.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7834044

lib/codereview/codereview.py

index 4b6014505f3d13be9dce75cbc5242ed6764e24e3..11766fcb23a76836042ff463947083bb7fd2c8e9 100644 (file)
@@ -155,7 +155,8 @@ default_to_utf8()
 global_status = None
 
 def set_status(s):
-       # print >>sys.stderr, "\t", time.asctime(), s
+       if verbosity > 0:
+               print >>sys.stderr, time.asctime(), s
        global global_status
        global_status = s
 
@@ -2213,6 +2214,7 @@ def reposetup(ui, repo):
        if codereview_init:
                return
        codereview_init = True
+       start_status_thread()
 
        # Read repository-specific options from lib/codereview/codereview.cfg or codereview.cfg.
        root = ''