why does has_same_location check the class?

Martin Pool mbp at sourcefrog.net
Wed Aug 29 03:46:51 BST 2007


On 8/29/07, Robert Collins <robertc at robertcollins.net> wrote:
>
> On Wed, 2007-08-29 at 11:51 +1000, Martin Pool wrote:
> >
> > Also, at the moment Repository, Branch, WorkingTree are all subclasses
> > of object.  There is some common behaviour between them that could
> > usefully be split into a base class, maybe called "Component" (of a
> > BzrDir).  Any comments, objections, or better names?
>
> What behaviour ?

Has a base url
Can be compared to another of the same kind
Can be locked
Has a format
Has a control_files, which has a transport
Belongs to a bzrdir
Can be cloned
Can be opened from or initialized in a bzrdir

There is not a great deal of stuff - there may be little code in the
base - but it would at least be worth making the way these things are
handled consistent, which is not always the case at present


-- 
Martin



More information about the bazaar mailing list