[MERGE] Replace Repository.__eq__/__ne__ methods with Repository.is_same_repository
Robert Collins
robertc at robertcollins.net
Tue Aug 7 08:28:08 BST 2007
On Tue, 2007-08-07 at 17:00 +1000, Andrew Bennetts wrote:
> Robert Collins wrote:
> > On Tue, 2007-08-07 at 11:45 +1000, Andrew Bennetts wrote:
> > !tweak
> >
> > >Andrew Bennetts wrote:
> > > [...]
> > > >
> > > > In the meantime, I'll rework the patch to use a method other than __eq__.
> > >
> > > Here is that patch. It removes Repository.__eq__/__ne__, and instead adds
> > > Repository.is_same_repository.
> > >
> > > I've taken care to document the possibility of false negatives in the docstring.
> > > It doesn't make any claim about lock states.
> >
> > This is good. One thing - the tests for the new method should go in a
> > new test script in repository_implementations.
>
> I don't follow you — the tests for this method already are in
> repository_implementations, and so get run for all repository formats.
its in test_repository.py, which is an overly large python file. I
suggest test_has_same_location.py
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070807/b2b9afc6/attachment-0001.pgp
More information about the bazaar
mailing list