Patchwork [2,of,7] contrib/perf: omit duplicated function

login
register
mail settings
Submitter timeless@mozdev.org
Date Nov. 24, 2015, 10:36 p.m.
Message ID <cbee1695638a014d87d1.1448404585@waste.org>
Download mbox | patch
Permalink /patch/11621/
State Accepted
Headers show

Comments

timeless@mozdev.org - Nov. 24, 2015, 10:36 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1448395515 0
#      Tue Nov 24 20:05:15 2015 +0000
# Node ID cbee1695638a014d87d12cd2f2cea93c54508763
# Parent  79a489bd2630fa77f066da16db8fe3e52d84015d
contrib/perf: omit duplicated function

Patch

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -329,10 +329,6 @@ 
 @command('perflookup', formatteropts)
 def perflookup(ui, repo, rev, **opts):
     timer, fm = gettimer(ui, opts)
-
-@command('perflookup', formatteropts)
-def perflookup(ui, repo, rev, **opts):
-    timer, fm = gettimer(ui, opts)
     timer(lambda: len(repo.lookup(rev)))
     fm.end()