server: Explicitly specify allowed protocol commands.
authorDave Borowitz <dborowitz@google.com>
Sun, 8 Aug 2010 19:32:08 +0000 (21:32 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 8 Aug 2010 19:32:08 +0000 (21:32 +0200)
commit5cde68e909384964d7fd05d9c7d9672aaceff7aa
treea84baa27d5c8add4f9bc9bd4ee40b01296d2dafd
parent28c8809248f4807528ce1fccdc16728c067b146c
server: Explicitly specify allowed protocol commands.

This means callers do not have to check the return value of
read_proto_line themselves, avoiding lots of duplicate code like
"if command not in (...): raise".
NEWS
dulwich/errors.py
dulwich/server.py
dulwich/tests/test_server.py