/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/selftest/blackbox.py

  • Committer: Robert Collins
  • Date: 2005-10-30 14:56:26 UTC
  • Revision ID: robertc@robertcollins.net-20051030145626-2f57bd49824dd1d7
Add a --create-prefix to the new push command.

As part of this, some option parsing errors will raise 'BzrOptionError',
allowing granular detection for decorating commands. (Robert Collins).

Show diffs side-by-side

added added

removed removed

Lines of Context:
738
738
        self.runbzr('push --overwrite')
739
739
        # nothing missing
740
740
        self.runbzr('missing ../output-branch')
 
741
        
 
742
        # pushing to a new dir with no parent should fail
 
743
        self.runbzr('push ../missing/new-branch', retcode=1)
 
744
        # unless we provide --create-prefix
 
745
        self.runbzr('push --create-prefix ../missing/new-branch')
 
746
        # nothing missing
 
747
        self.runbzr('missing ../missing/new-branch')
741
748
 
742
749
 
743
750
def listdir_sorted(dir):