Mercurial > hg
annotate hgext/progress.py @ 25912:cbbdd085c991
batching: migrate basic noop batching into peer.peer
"Real" batching only makes sense for wirepeers, but it greatly
simplifies the clients of peer instances if they can be ignorant to
actual batching capabilities of that peer. By moving the
not-really-batched batching code into peer.peer, all peer instances
now work with the batching API, thus simplifying users.
This leaves a couple of name forwards in wirepeer.py. Originally I had
planned to clean those up, but it kind of unclarifies other bits of
code that want to use batching, so I think it makes sense for the
names to stay exposed by wireproto. Specifically, almost nothing is
currently aware of peer (see largefiles.proto for an example), so
making them be aware of the peer module *and* the wireproto module
seems like some abstraction leakage. I *think* the right long-term fix
would actually be to make wireproto an implementation detail that
clients wouldn't need to know about, but I don't really know what that
would entail at the moment.
As far as I'm aware, no clients of batching in third-party extensions
will need updating, which is nice icing.
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 05 Aug 2015 14:51:34 -0400 |
parents | 15c2c580b2a7 |
children | 5ef327e9c157 |
rev | line source |
---|---|
10434 | 1 # progress.py show progress bars for some actions |
2 # | |
3 # Copyright (C) 2010 Augie Fackler <durin42@gmail.com> | |
4 # | |
15772
83a140752239
progress: Use the same GPL boilerplate as most hg files
Augie Fackler <durin42@gmail.com>
parents:
15662
diff
changeset
|
5 # This software may be used and distributed according to the terms of the |
83a140752239
progress: Use the same GPL boilerplate as most hg files
Augie Fackler <durin42@gmail.com>
parents:
15662
diff
changeset
|
6 # GNU General Public License version 2 or any later version. |
10434 | 7 |
25522
15c2c580b2a7
progress: deprecate the progress extension
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25521
diff
changeset
|
8 """show progress bars for some actions (DEPRECATED) |
10434 | 9 |
25522
15c2c580b2a7
progress: deprecate the progress extension
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25521
diff
changeset
|
10 This extension has been merged into core, you can remove it from your config. |
15c2c580b2a7
progress: deprecate the progress extension
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25521
diff
changeset
|
11 See hg help config.progress for configuration options. |
10434 | 12 """ |