Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.6, 0.7, and 0.7.1

tracelog: show timestamp on output lines

Changeset c6903eee7297

Parent e071155eba6f

by TK Soh

Changes to one file · Browse files at c6903eee7297 Showing diff from parent e071155eba6f Diff from another changeset...

Change 1 of 2 Show Entire File tracelog.py Stacked
 
12
13
14
 
15
16
17
 
103
104
105
106
 
 
 
107
108
109
 
12
13
14
15
16
17
18
 
104
105
106
 
107
108
109
110
111
112
@@ -12,6 +12,7 @@
 import threading  import Queue  import win32trace +import time    try:   from hggtk.hglib import toutf @@ -103,7 +104,9 @@
  while self.queue.qsize():   try:   msg = self.queue.get(0) - self.write(msg) + ts = '[%s] ' % time.strftime('%c') + for line in msg.splitlines(True): + self.write(ts + line)   except Queue.Empty:   pass