~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to baz_import.py

  • Committer: Aaron Bentley
  • Date: 2005-06-17 13:45:41 UTC
  • Revision ID: abentley@panoramicfeedback.com-20050617134541-205d06aa13db514d
Adapted bzrlib's progress bar

Show diffs side-by-side

added added

removed removed

Lines of Context:
306
306
                    sys.stdout.write('.')
307
307
        finally:
308
308
            if fancy:
309
 
                clear_progress_bar()
 
309
                progress_bar.clear()
310
310
            else:
311
311
                sys.stdout.write('\n')
312
312
 
554
554
 
555
555
    def run(self, to_location, from_branch=None, skip_symlinks=False, 
556
556
            fast=False, max_count=None, verbose=False, dry_run=False):
557
 
        fancy = rewriting_supported()
558
557
        to_location = os.path.realpath(str(to_location))
559
558
        if from_branch is not None:
560
559
            try:
562
561
            except pybaz.errors.NamespaceError:
563
562
                print "%s is not a valid Arch branch." % from_branch
564
563
                return 1
565
 
        import_version(to_location, from_branch, fancy=fancy)
 
564
        import_version(to_location, from_branch)