Lines Matching refs:vcs
98 +def register_vcs_handler(vcs, method): # decorator
101 + """Store f in HANDLERS[vcs][method]."""
102 + if vcs not in HANDLERS:
103 + HANDLERS[vcs] = {}
104 + HANDLERS[vcs][method] = f
1150 def register_vcs_handler(vcs, method): # decorator
1154 """Store f in HANDLERS[vcs][method]."""
1155 - if vcs not in HANDLERS:
1156 - HANDLERS[vcs] = {}
1157 - HANDLERS[vcs][method] = f
1158 + HANDLERS.setdefault(vcs, {})[method] = f
1265 def register_vcs_handler(vcs, method): # decorator
1269 """Store f in HANDLERS[vcs][method]."""
1270 if vcs not in HANDLERS:
1271 @@ -550,55 +494,71 @@ def register_vcs_handler(vcs, method): # decorator