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

  • Committer: John Arbash Meinel
  • Date: 2005-09-23 18:33:22 UTC
  • mto: (1185.31.24 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1512.
  • Revision ID: john@arbash-meinel.com-20050923183322-1441a26b3cd167dc
Made --dry-run print a better warning, so we don't scare people.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
            lf = log_formatter('short', to_file=sys.stdout,show_timezone='original')
49
49
            lf.show(r, b.get_revision(rev_id), None)
50
50
 
51
 
        print 'The above revision(s) will be removed.'
52
 
        val = raw_input('Are you sure [y/N]? ')
53
 
        if val.lower() not in ('y', 'yes'):
54
 
            print 'Canceled'
55
 
            return 0
 
51
        if dry_run:
 
52
            print 'Dry-run, pretending to remove the above revisions.'
 
53
            val = raw_input('Press <enter> to continue')
 
54
        else:
 
55
            print 'The above revision(s) will be removed.'
 
56
            val = raw_input('Are you sure [y/N]? ')
 
57
            if val.lower() not in ('y', 'yes'):
 
58
                print 'Canceled'
 
59
                return 0
56
60
 
57
61
        uncommit.uncommit(b, remove_files=remove,
58
62
                dry_run=dry_run, verbose=verbose,