Nomenclature

Martin Pool martinpool at gmail.com
Tue Oct 4 07:36:51 BST 2005


On 01/10/05, John A Meinel <john at arbash-meinel.com> wrote:
> Actually, there is a very significant difference here.
> branch.revision_history() is give me the revision history of this
> branch. (A property of this branch).
> branch.revision() would say to me tell me what the revision of this
> branch is. But really branch.get_revision() is giving you some
> information about a particular revision.
>
> The issue is that some functions are attributes of branch, and some are
> coming from the data that branch stores.
>
> That might be the best breakpoint for what gets a get_ accessor, and
> what doesn't.

Or perhaps it means that there should be an object which holds the
revision_history list (maybe a "branch"), and a separate one that
holds all the revisions (maybe an "archive"), even if they're talking
to the same directory on disk.

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.)

--
Martin




More information about the bazaar mailing list