[merge] deprecate LockableFiles.get_utf8
Martin Pool
mbp at canonical.com
Thu May 1 05:52:39 BST 2008
As discussed some time ago, I want to remove LockableFiles, which is
present on most components as .control_files. It has a mismash of
several functions which don't fit particularly well together, and make
some changes in Remote objects harder.
This is the first (and maybe easiest) patch: rather than using
.get_utf8(), callers just act on the transport directly.
At the moment Branch/Repository/Tree objects must have a .control_files
attribute, pointing to a LockableFiles. I'll probably change that to
require them to have a ._transport instead. We don't really want them
to need to expose a Transport, but at present they effectively do, as
.control_files._transport. Once everything that does file-level
operations is going through the same interface we can clean up any
non-internal users of it.
--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20080501-controlfiles.diff
Type: text/x-diff
Size: 18076 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080501/fa4a758c/attachment-0001.bin
More information about the bazaar
mailing list