Source

thg-qt-mq / wb-run-timeit.diff

Full commit
# HG changeset patch
# Parent 831ce68e2a3812b5a2b8e351839ade2d7d2576d9

diff --git a/tortoisehg/hgqt/workbench.py b/tortoisehg/hgqt/workbench.py
--- a/tortoisehg/hgqt/workbench.py
+++ b/tortoisehg/hgqt/workbench.py
@@ -1155,6 +1155,7 @@ def connectToExistingWorkbench(root=None
     return False
 
 def run(ui, *pats, **opts):
+    import time; oclock = time.clock()
     root = opts.get('root') or paths.find_root()
     if root and pats:
         repo = thgrepo.repository(ui, root)
@@ -1214,5 +1215,6 @@ def run(ui, *pats, **opts):
                 w.setRevsetFilter(uroot, ' or '.join(q))
         if w.repoTabsWidget.count() <= 0:
             w.reporegistry.setVisible(True)
+        print 'elapsed', time.clock() - oclock
     QTimer.singleShot(0, init)  # after window visible
     return w