/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/controldir.py

Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
        """
142
142
        raise NotImplementedError(self.needs_format_conversion)
143
143
 
 
144
    def create_repository(self, shared=False):
 
145
        """Create a new repository in this control directory.
 
146
 
 
147
        :param shared: If a shared repository should be created
 
148
        :return: The newly created repository
 
149
        """
 
150
        raise NotImplementedError(self.create_repository)
 
151
 
144
152
    def destroy_repository(self):
145
153
        """Destroy the repository in this ControlDir."""
146
154
        raise NotImplementedError(self.destroy_repository)
701
709
        return modules
702
710
 
703
711
 
 
712
class Converter(object):
 
713
    """Converts a disk format object from one format to another."""
 
714
 
 
715
    def convert(self, to_convert, pb):
 
716
        """Perform the conversion of to_convert, giving feedback via pb.
 
717
 
 
718
        :param to_convert: The disk object to convert.
 
719
        :param pb: a progress bar to use for progress information.
 
720
        """
 
721
 
 
722
    def step(self, message):
 
723
        """Update the pb by a step."""
 
724
        self.count +=1
 
725
        self.pb.update(message, self.count, self.total)
 
726
 
 
727
 
704
728
class ControlDirFormat(object):
705
729
    """An encapsulation of the initialization and open routines for a format.
706
730