Merge lp:~mbp/bzr/456077-cross-format-fetch into lp:bzr/2.0
| Status: | Merged |
|---|---|
| Approved by: | John A Meinel on 2010-01-14 |
| Approved revision: | no longer in the revision history of the source branch. |
| Merged at revision: | not available |
| Proposed branch: | lp:~mbp/bzr/456077-cross-format-fetch |
| Merge into: | lp:bzr/2.0 |
| Diff against target: |
188 lines (+69/-21) 5 files modified
NEWS (+3/-3) bzrlib/repository.py (+8/-7) bzrlib/smart/repository.py (+9/-1) bzrlib/tests/blackbox/test_pull.py (+41/-9) bzrlib/ui/__init__.py (+8/-1) |
| To merge this branch: | bzr merge lp:~mbp/bzr/456077-cross-format-fetch |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| John A Meinel | 2010-01-14 | Approve on 2010-01-14 | |
|
Review via email:
|
|||
| Martin Pool (mbp) wrote : | # |
| John A Meinel (jameinel) wrote : | # |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Martin Pool wrote:
> Martin Pool has proposed merging lp:~mbp/bzr/456077-cross-format-fetch into lp:bzr/2.0.
>
> Requested reviews:
> bzr-core (bzr-core)
> Related bugs:
> #456077 MYSQL/BZR P3: bzr doesn't explain it's doing a slow cross-format fetch
> https:/
>
>
> * Give warnings about cross-format fetch for pushes and pulls across the network.
> * Put the actual warning into the UI object.
>
>
This seems ok. My main concern is that I don't see a dedup counter. So
if there are multiple 'inventory-delta' substreams (allowed by the
protocol, may not happen in practice) then you'll get the warning
multiple times.
Otherwise the change to a common warning helper is nice. I guess on
ui_factory is reasonable as long as it is on the base class so that
other factories don't *have* to implement it. (potentially a 2.0-stable
compatibility issue.)
"Upgrade the branches" also isn't 100% accurate, given that it is the
repository format that matters...
I'm happy enough with this, but you may want to tweak it before landing.
review: approve
merge: approve
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkt
SsQAniso3Xu+
=dfAR
-----END PGP SIGNATURE-----
| Martin Pool (mbp) wrote : | # |
> This seems ok. My main concern is that I don't see a dedup counter. So
> if there are multiple 'inventory-delta' substreams (allowed by the
> protocol, may not happen in practice) then you'll get the warning
> multiple times.
It's a fair point, but it doesn't seem to happen at the moment.
Should the de-duping be local? Maybe the warning suppression code should allow it to be global just once, as for Python warnings.
> "Upgrade the branches" also isn't 100% accurate, given that it is the
> repository format that matters...
Good point.
>
> I'm happy enough with this, but you may want to tweak it before landing.
I'll just correct the phrasing and send it. Bug 507655 is a followon for being able to suppress the warning.
- 4727. By Canonical.com Patch Queue Manager <email address hidden> on 2010-01-15
-
(mbp) warning on cross-format stream transfers

* Give warnings about cross-format fetch for pushes and pulls across the network.
* Put the actual warning into the UI object.