/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 tests/test_upload.py

  • Committer: Gary van der Merwe
  • Date: 2009-01-04 10:53:38 UTC
  • mto: (0.152.55 trunk)
  • mto: This revision was merged to the branch mainline in revision 6649.
  • Revision ID: garyvdm@gmail.com-20090104105338-39u3up40xlnxnkyy
Use cmd_push insted of self.run_bzr to avoid getinng asked for a password.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    workingtree,
32
32
    )
33
33
from bzrlib.smart import server as smart_server
 
34
from bzrlib.builtins import cmd_push
34
35
 
35
36
from bzrlib.tests import (
36
37
    test_transport_implementations,
564
565
    def do_full_upload(self, *args, **kwargs):
565
566
        up_url = self.get_transport(self.upload_dir).external_url()
566
567
        
567
 
        self.run_bzr(['push', up_url, '--directory=branch'])
 
568
        push = cmd_push()
 
569
        push._setup_outf()
 
570
        push.run(location=up_url, directory='branch')
568
571
        
569
572
        upload = self._get_cmd_upload()
570
573
        if kwargs.get('directory', None) is None:
576
579
    def do_incremental_upload(self, *args, **kwargs):
577
580
        up_url = self.get_transport(self.upload_dir).external_url()
578
581
        
579
 
        self.run_bzr(['push', up_url, '--directory=branch'])
 
582
        push = cmd_push()
 
583
        push._setup_outf()
 
584
        push.run(location=up_url, directory='branch')
580
585
        
581
586
        upload = self._get_cmd_upload()
582
587
        if kwargs.get('directory', None) is None: