[MERGE] Add __eq__ and __ne__ methods to Repository objects
Andrew Bennetts
andrew at canonical.com
Tue Aug 7 02:54:11 BST 2007
Martin Pool wrote:
[...]
>
> I think in this case explicit is better: I would rather have a method called eg
>
> repo.isSameLocation(other)
>
> that gives some indication of what's being compared, and that makes it
> clear this is not just an ==. That's not a great name for it though.
Yeah, it's hard thinking of a good name. The precise concept is really "is
stored at the same URL", which is a bit verbose to squeeze into a method name.
I think isSameLocation (or a variation on the phrase "same location", e.g.
at_same_location_as?) is about as good as we'll get :/
-Andrew.
More information about the bazaar
mailing list