/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: Aaron Bentley
  • Date: 2007-01-12 04:48:18 UTC
  • mto: (2255.6.1 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: aaron.bentley@utoronto.ca-20070112044818-nnw6iunriqq073qc
Implement tree comparison for tree references

Show diffs side-by-side

added added

removed removed

Lines of Context:
1830
1830
    """
1831
1831
 
1832
1832
    repository_class = KnitRepository3
 
1833
    support_tree_reference = True
 
1834
 
 
1835
    def check_conversion_target(self, target_format):
 
1836
        RepositoryFormatKnit2.check_conversion_target(self, target_format)
 
1837
        if not getattr(target_format, 'support_tree_reference', False):
 
1838
            raise errors.BadConversionTarget(
 
1839
                'Does not support nested trees', target_format)
 
1840
            
1833
1841
 
1834
1842
    def get_format_string(self):
1835
1843
        """See RepositoryFormat.get_format_string()."""
1925
1933
            return False
1926
1934
        if not isinstance(target, Repository):
1927
1935
            return False
1928
 
        if source._format.rich_root_data == target._format.rich_root_data:
1929
 
            return True
 
1936
        if source._format.rich_root_data != target._format.rich_root_data:
 
1937
            return False
 
1938
        if source._serializer != target._serializer:
 
1939
            return False
1930
1940
        else:
1931
 
            return False
 
1941
            return True 
1932
1942
 
1933
1943
    @needs_write_lock
1934
1944
    def copy_content(self, revision_id=None, basis=None):