changeset 173:bc7b0d080031

removed profiling and debugging code
author Scott Chacon <schacon@gmail.com>
date Wed, 03 Jun 2009 09:59:16 -0700
parents ac92cdc45ceb
children 4286209da98e
files __init__.py
diffstat 1 files changed, 1 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/__init__.py	Wed Jun 03 09:55:45 2009 -0700
+++ b/__init__.py	Wed Jun 03 09:59:16 2009 -0700
@@ -48,20 +48,7 @@
 
 def gpush(ui, repo, remote_name='origin', branch=None):
     git = GitHandler(repo, ui)
-    import cProfile, pstats
-    import lsprofcalltree
-    prof = cProfile.Profile()
-    prof = prof.runctx("git.push(remote_name)", globals(), locals())
-    stats = pstats.Stats(prof)
-    k = lsprofcalltree.KCacheGrind(prof)
-    data = open('/tmp/prof.kgrind', 'w+')
-    k.output(data)
-    data.close()
-    stats.sort_stats("cumulative")  # Or cumulative
-    stats.print_stats(80)  # 80 = how many to print
-    # The rest is optional.
-    #stats.print_callees()
-    #stats.print_callers()
+    git.push(remote_name)
 
 def gimport(ui, repo, remote_name=None):
     git = GitHandler(repo, ui)