~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to baz2bzr

  • Committer: abentley
  • Date: 2005-04-28 10:39:42 UTC
  • Revision ID: abentley@lappy-20050428103942-e65419e58b20674a
Removed unversioned files before exiting

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
            branch.commit(log.summary)
186
186
 
187
187
        sys.stdout.write('\n')
 
188
        for unversioned in branch.working_tree().extras():
 
189
            path = os.path.join(revdir, unversioned)
 
190
            if os.path.isdir(path):
 
191
                shutil.rmtree(path)
 
192
            else:
 
193
                os.unlink(path)
188
194
        os.rename(revdir, output_dir)   
189
195
    finally:
190
196
        shutil.rmtree(tempdir)