Cleaning up Branch

Aaron Bentley aaron.bentley at utoronto.ca
Tue Oct 4 13:53:34 BST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Pool wrote:
> Branch() has a lot of methods but it's not completely clear to me how
> to slice it up.  (Well, one thing would be to remove obsolete
> interfaces and move things that work on the working directory into an
> object representing it.)

Here's how I'd propose slicing things:
Branch
- - all operations that access or modoify revision-history and merge history
- - contains a Storage and a WorkingTree

WorkingTree
- - all inventory operations
- - pending merge api
- - file / directory / symlink create/write/read/delete operations

Storage
- - all revision and RevisionTree operations, except those that refer to
branch history
- - all access to inventories
- - all access to texts
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDQntO0F+nu1YWqI0RAgEYAJ9XRBkRH+IDoo9TvLRt0A4DiaWadQCdH3ah
lPqhsJg4OtvBOEvVejdL+Zw=
=wkmK
-----END PGP SIGNATURE-----




More information about the bazaar mailing list