~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/clean_tree.py

(jelmer) Add flag to indicate whether a repository supports unreferenced
 revisions. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
            return 0
64
64
        if not no_prompt:
65
65
            for path, subp in deletables:
66
 
                ui.ui_factory.note(subp)
67
 
            prompt = gettext('Are you sure you wish to delete these')
68
 
            if not ui.ui_factory.get_boolean(prompt):
69
 
                ui.ui_factory.note(gettext('Canceled'))
 
66
                # FIXME using print is very bad idea
 
67
                # clean_tree should accept to_file argument to write the output
 
68
                print subp
 
69
            val = raw_input('Are you sure you wish to delete these [y/N]?')
 
70
            if val.lower() not in ('y', 'yes'):
 
71
                print 'Canceled'
70
72
                return 0
71
73
        delete_items(deletables, dry_run=dry_run)
72
74
    finally: