Add no-progress capability support to UploadPackHandler.
authorDave Borowitz <dborowitz@google.com>
Fri, 19 Feb 2010 23:20:10 +0000 (15:20 -0800)
committerDave Borowitz <dborowitz@google.com>
Thu, 4 Mar 2010 17:50:05 +0000 (09:50 -0800)
commite2d0a615baaa80e7f3b2ea50278e16d4665e40f7
treec381965abaf67f252d79d843e1277fb696589768
parent8579ade2aa1ad0d94e7553c83e5dd909474edf78
Add no-progress capability support to UploadPackHandler.

The progress function is now a method rather than a lambda, since it
needs to check the handler's state in order to decide whether to
write. Since progress is called many times, also changed
_client_capabilities to be a set. Added simple tests for the progress
method.

Change-Id: Id6b48272af0da10ae6c99512ec1706c0d0309455
dulwich/server.py
dulwich/tests/test_server.py