Mercurial > hg
diff mercurial/wireproto.py @ 26443:d947086d8973
streamclone: move code out of exchange.py
We bulk move functions from exchange.py related to streaming clones.
Function names were renamed slightly to drop a component redundant with
the module name. Docstrings and comments referencing old names and
locations were updated accordingly.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 02 Oct 2015 16:05:52 -0700 |
parents | 0851678be71b |
children | 623743010133 |
line wrap: on
line diff
--- a/mercurial/wireproto.py Fri Oct 02 15:58:24 2015 -0700 +++ b/mercurial/wireproto.py Fri Oct 02 16:05:52 2015 -0700 @@ -26,6 +26,7 @@ exchange, peer, pushkey as pushkeymod, + streamclone, util, ) @@ -720,7 +721,7 @@ try: # LockError may be raised before the first result is yielded. Don't # emit output until we're sure we got the lock successfully. - it = exchange.generatestreamclone(repo) + it = streamclone.generatev1(repo) return streamres(getstream(it)) except error.LockError: return '2\n'