~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Matthew Fuller
  • Date: 2010-12-04 16:53:08 UTC
  • mto: (5575.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 5576.
  • Revision ID: fullermd@over-yonder.net-20101204165308-rvdlj6wzcugqirxk
Wrap a progress bar around removing the backup dir; it may take a
while if it's across the network.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        """
109
109
        transport = self.transport
110
110
        backup_relpath = transport.relpath(self.backup_newpath)
111
 
        transport.delete_tree(backup_relpath)
 
111
        child_pb = ui.ui_factory.nested_progress_bar()
 
112
        child_pb.update('Deleting backup.bzr')
 
113
        try:
 
114
            transport.delete_tree(backup_relpath)
 
115
        finally:
 
116
            child_pb.finished()
112
117
 
113
118
 
114
119
def upgrade(urls, format=None, clean_up=False, pack=False, dry_run=False):