/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Robert Collins
  • Date: 2007-08-07 22:59:45 UTC
  • mfrom: (2681 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2682.
  • Revision ID: robertc@robertcollins.net-20070807225945-dlxppeb3we4lh897
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
        self.bzrdir = a_bzrdir
246
246
        self.control_files = control_files
247
247
        self._revision_store = _revision_store
248
 
        self.text_store = text_store
249
248
        # backwards compatibility
250
249
        self.weave_store = text_store
251
250
        # not right yet - should be more semantically clear ? 
261
260
        return '%s(%r)' % (self.__class__.__name__, 
262
261
                           self.bzrdir.transport.base)
263
262
 
 
263
    def has_same_location(self, other):
 
264
        """Returns a boolean indicating if this repository is at the same
 
265
        location as another repository.
 
266
 
 
267
        This might return False even when two repository objects are accessing
 
268
        the same physical repository via different URLs.
 
269
        """
 
270
        if self.__class__ is not other.__class__:
 
271
            return False
 
272
        return (self.control_files._transport.base ==
 
273
                other.control_files._transport.base)
 
274
 
264
275
    def is_in_write_group(self):
265
276
        """Return True if there is an open write group.
266
277
 
787
798
        a_weave = self.get_inventory_weave()
788
799
        all_revisions = self._eliminate_revisions_not_present(
789
800
                                a_weave.versions())
790
 
        entire_graph = dict([(node, a_weave.get_parents(node)) for 
 
801
        entire_graph = dict([(node, tuple(a_weave.get_parents(node))) for 
791
802
                             node in all_revisions])
792
803
        if revision_id is None:
793
804
            return entire_graph