[RFC] Repository facade implementation
Aaron Bentley
aaron.bentley at utoronto.ca
Wed Jul 18 18:09:45 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
Here's an implementation of the repository façade concept.
There are two implementations: VersionedFileRepository and
StackedRepository.
It changes RevisionTree to use a VersionedFileRepository, mainly for
testing purposes. The only uses of get_weave remaining are for weave
merge (handled in another patch) and Tree.check.
I am trying to structure it so that the RepositoryFacade class provides
the user-facing functionality, via the template method.
Subclasses must implement _iter_revisions and _iter_file_lines, so far.
Of course, they can also override RepositoryFacade methods if they like.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGnklZ0F+nu1YWqI0RAk/EAJ9WhauExkU2QQczD8K/c9RsNcLh0QCgh5Di
sP7laJxlAJNOcTnM0Ta7CQM=
=CIWS
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: repository-facade.diff
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20070718/fb3d37f0/attachment.diff
More information about the bazaar
mailing list