##// END OF EJS Templates
wireproto: use decorator for the stream command
Pierre-Yves David -
r20922:588e24f3 default
parent child Browse files
Show More
@@ -683,6 +683,7 b' def _walkstreamfiles(repo):'
683 # this is it's own function so extensions can override it
683 # this is it's own function so extensions can override it
684 return repo.store.walk()
684 return repo.store.walk()
685
685
686 @wireprotocommand('stream_out')
686 def stream(repo, proto):
687 def stream(repo, proto):
687 '''If the server supports streaming clone, it advertises the "stream"
688 '''If the server supports streaming clone, it advertises the "stream"
688 capability with a value representing the version and flags of the repo
689 capability with a value representing the version and flags of the repo
@@ -796,6 +797,5 b' def unbundle(repo, proto, heads):'
796 os.unlink(tempname)
797 os.unlink(tempname)
797
798
798 commands.update({
799 commands.update({
799 'stream_out': (stream, ''),
800 'unbundle': (unbundle, 'heads'),
800 'unbundle': (unbundle, 'heads'),
801 })
801 })
General Comments 0
You need to be logged in to leave comments. Login now