Merge lp:~spiv/bzr/repo-refresh-data-574236 into lp:bzr
Proposed by
Andrew Bennetts
on 2010-05-04
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Merge reported by: | Gary van der Merwe | ||||
| Merged at revision: | not available | ||||
| Proposed branch: | lp:~spiv/bzr/repo-refresh-data-574236 | ||||
| Merge into: | lp:bzr | ||||
| Diff against target: | 0 lines | ||||
| To merge this branch: | bzr merge lp:~spiv/bzr/repo-refresh-data-574236 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Robert Collins (community) | 2010-05-04 | Needs Fixing on 2010-05-04 | |
|
Review via email:
|
|||
Description of the Change
Relax the limitations of refresh_data. See the linked bug and NEWS entry for details.
To post a comment you must log in.
| Andrew Bennetts (spiv) wrote : | # |
Thanks. I've made the suggested changes, and am sending to PQM now.
lp:~spiv/bzr/repo-refresh-data-574236
updated
on 2010-05-04
- 5201. By Andrew Bennetts on 2010-05-04
-
Expand test to use repo.all_
revision_ ids(), and use make_branch_ and_memory_ tree instead of make_branch_ and_tree. - 5202. By Andrew Bennetts on 2010-05-04
-
Use Robert's text for the refresh_data docstring.

@@ -1310,12 +1310,10 @@
This method is intended to be called after another repository instance
(such as one used by a smart server) has inserted data into the
- repository. It may not be called during a write group, but may be
+ repository. If called during a write group it may raise
+ IsInWriteGroupError (depending on repository format), but it may be
called at any other time.
This could be clearer - I suggested
+ repository. On all repositories this will work outside of write groups.
+ Some repository formats (pack and newer for bzrlib native formats) support
+ refresh_data inside write groups. If called inside a write group on a
+ repository that does not support refreshing in a write group
+ IsInWriteGroupError will be raised.
(this just avoids a deeply conditional clause). Note that there are a couple of copies of the docstring.
I'd like the test to include the call to 'repo.all_ revision_ ids()' I suggested in the bug report, because that will exercise more code :)
so - tweak.