Merge lp:~lifeless/bzr/loomsupport into lp:bzr
| Status: | Merged |
|---|---|
| Approved by: | Robert Collins on 2010-06-24 |
| Approved revision: | no longer in the revision history of the source branch. |
| Merged at revision: | 5318 |
| Proposed branch: | lp:~lifeless/bzr/loomsupport |
| Merge into: | lp:bzr |
| Diff against target: |
34 lines (+13/-4) 1 file modified
bzrlib/tests/per_interbranch/test_push.py (+13/-4) |
| To merge this branch: | bzr merge lp:~lifeless/bzr/loomsupport |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Vincent Ladeuil | 2010-06-24 | Approve on 2010-06-24 | |
|
Review via email:
|
|||
Commit Message
Make the interbranch test_no_
Description of the Change
test_no_
loosens it a little for looms.
| John Szakmeister (jszakmeister) wrote : | # |
On Thu, Jun 24, 2010 at 4:32 AM, Robert Collins
<email address hidden> wrote:
[snip]
> === modified file 'bzrlib/
> --- bzrlib/
> +++ bzrlib/
> @@ -19,6 +19,11 @@
> from cStringIO import StringIO
> import os
>
> +from testtools.matchers import (
> + Equals,
> + MatchesAny,
> + )
> +
> from bzrlib import (
> branch,
> builtins,
> @@ -272,10 +277,14 @@
> calls_after_
> # After inserting the stream the client has no reason to query the
> # remote graph any further.
> - self.assertEqual(
> - ['Repository.
> - 'get', 'Branch.
> - calls_
> + bzr_core_trace = Equals(
> + ['Repository.
> + 'get', 'Branch.
> + bzr_loom_trace = Equals(
> + ['Repository.
> + 'get', 'Branch.
> + self.assertTha
> + MatchesAny(
This is probably my ignorance, but bzr_loom_trace and bzr_core_trace
look identical. How does this help? Thanks for the forthcoming
education. :-)
-John
| Robert Collins (lifeless) wrote : | # |
sent to pqm by email
| Robert Collins (lifeless) wrote : | # |
On Thu, Jun 24, 2010 at 6:40 PM, John Szakmeister <email address hidden> wrote:
> On Thu, Jun 24, 2010 at 4:32 AM, Robert Collins
>> @@ -272,10 +277,14 @@
>> calls_after_
>> # After inserting the stream the client has no reason to query the
>> # remote graph any further.
>> - self.assertEqual(
>> - ['Repository.
>> - 'get', 'Branch.
>> - calls_
>> + bzr_core_trace = Equals(
>> + ['Repository.
>> + 'get', 'Branch.
>> + bzr_loom_trace = Equals(
>> + ['Repository.
>> + 'get', 'Branch.
>> + self.assertTha
>> + MatchesAny(
>
> This is probably my ignorance, but bzr_loom_trace and bzr_core_trace
> look identical. How does this help? Thanks for the forthcoming
> education. :-)
Its a little subtle, and I could have played list slicing tricks to
make it more obvious, but at a cost in reading each trace, so I did it
the way I did.
here's a side-by-side comparison:
'Repository.
'Repository.
'get', 'get',
'Branch.
'get',
'Branch.unlock' 'Branch.unlock',
-Rob
| John Szakmeister (jszakmeister) wrote : | # |
On Thu, Jun 24, 2010 at 4:51 AM, Robert Collins
<email address hidden> wrote:
[snip]
> Its a little subtle, and I could have played list slicing tricks to
> make it more obvious, but at a cost in reading each trace, so I did it
> the way I did.
>
> here's a side-by-side comparison:
> 'Repository.
> 'Repository.
> 'get', 'get',
> 'Branch.
> 'get',
> 'Branch.unlock' 'Branch.unlock',
Bah, I should've seen that. Thank you.
-John
- 5318. By Canonical.com Patch Queue Manager <email address hidden> on 2010-06-24
-
(lifeless) Make the interbranch test_no_
get_parent_ map_after_ insert_ stream
test work for looms. (Robert Collins)

As said on IRC mentioning loom in core feels dirty, but the commit messageS are good enough to tell
the next maintainer what the problem is about.