Rev 4911: Merge the updated categorize-requests comments in http://bazaar.launchpad.net/~jameinel/bzr/2.1-client-read-reconnect-819604
John Arbash Meinel
john at arbash-meinel.com
Mon Oct 10 12:42:46 UTC 2011
At http://bazaar.launchpad.net/~jameinel/bzr/2.1-client-read-reconnect-819604
------------------------------------------------------------
revno: 4911 [merge]
revision-id: john at arbash-meinel.com-20111010124228-y6a7wq52lqtgn4q5
parent: john at arbash-meinel.com-20111010123957-mdt3zijmjakh0vtd
parent: john at arbash-meinel.com-20111010124110-fxw5migxcbccs89a
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1-client-read-reconnect-819604
timestamp: Mon 2011-10-10 14:42:28 +0200
message:
Merge the updated categorize-requests comments
modified:
bzrlib/smart/request.py request.py-20061108095550-gunadhxmzkdjfeek-1
-------------- next part --------------
=== modified file 'bzrlib/smart/request.py'
--- a/bzrlib/smart/request.py 2011-10-10 11:23:23 +0000
+++ b/bzrlib/smart/request.py 2011-10-10 12:41:10 +0000
@@ -491,9 +491,6 @@
# read This is purely a read request, so retrying it is perfectly ok.
# idem An idempotent write request. Something like 'put' where if you put
# the same bytes twice you end up with the same final bytes.
-# mutate State is updated in a way that replaying that request results in a
-# different state. For example 'append' writes more bytes to a given
-# file. If append succeeds, it moves the file pointer.
# semi This is a request that isn't strictly idempotent, but doesn't
# result in corruption if it is retried. This is for things like
# 'lock' and 'unlock'. If you call lock, it updates the disk
@@ -510,6 +507,9 @@
# consumed. This request is 'safe' in that if we determine the
# connection is closed before we consume the stream, we can try
# again.
+# mutate State is updated in a way that replaying that request results in a
+# different state. For example 'append' writes more bytes to a given
+# file. If append succeeds, it moves the file pointer.
request_handlers = registry.Registry()
request_handlers.register_lazy(
'append', 'bzrlib.smart.vfs', 'AppendRequest', info='mutate')
More information about the bazaar-commits
mailing list