]> Cypherpunks.ru repositories - gostls13.git/commit
codereview.py: correct error handling without decorator
authorUriel Mangado <uriel@berlinblue.org>
Sat, 1 Sep 2012 23:55:29 +0000 (19:55 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 1 Sep 2012 23:55:29 +0000 (19:55 -0400)
commit9b8c94a46f3ad978ed3e0fa9037bf18dec6c30b0
tree81b4e11521bd34e01e50258e2c2eeb1b4ff55a49
parent5fa8987fe33210aed95aabe86864cbf75eca3fa0
codereview.py: correct error handling without decorator

The decorator hides the number of function arguments from Mercurial,
so Mercurial cannot give proper error messages about commands
invoked with the wrong number of arguments.

Left a 'dummy' hgcommand decorator in place as a way to document
what functions are hg commands, and just in case we need some other
kind of hack in the future.

R=adg, rsc
CC=golang-dev
https://golang.org/cl/6488059
lib/codereview/codereview.py