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

  • Committer: Martin Pool
  • Date: 2006-10-29 01:44:29 UTC
  • mto: This revision was merged to the branch mainline in revision 2112.
  • Revision ID: mbp@sourcefrog.net-20061029014429-77497a4f933e6dfd
Fix some code which relies on assertions and breaks under python -O

Show diffs side-by-side

added added

removed removed

Lines of Context:
960
960
      it is silently replaced.
961
961
    - Otherwise, conflict resolution will move the old file to 'oldname.moved'.
962
962
    """
963
 
    assert 2 > len(wt.inventory)
 
963
    if len(wt.inventory) > 1:  # more than just a root
 
964
        raise errors.WorkingTreeAlreadyPopulated(base=wt.basedir)
964
965
    file_trans_id = {}
965
966
    top_pb = bzrlib.ui.ui_factory.nested_progress_bar()
966
967
    pp = ProgressPhase("Build phase", 2, top_pb)