diff mercurial/wireproto.py @ 11618:83070a9cd526

protocol: command must be checked before passing in
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 16 Jul 2010 19:01:34 +0200
parents 9141d2c9e5a5
children 48667abddd60
line wrap: on
line diff
--- a/mercurial/wireproto.py	Tue Jul 20 10:05:30 2010 +0200
+++ b/mercurial/wireproto.py	Fri Jul 16 19:01:34 2010 +0200
@@ -134,14 +134,11 @@
 # server side
 
 def dispatch(repo, proto, command):
-    if command not in commands:
-        return False
     func, spec = commands[command]
     args = proto.getargs(spec)
     r = func(repo, proto, *args)
     if r != None:
         proto.respond(r)
-    return True
 
 def between(repo, proto, pairs):
     pairs = [decodelist(p, '-') for p in pairs.split(" ")]