~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testfetch.py

  • Committer: Robert Collins
  • Date: 2005-09-27 07:24:40 UTC
  • mfrom: (1185.1.41)
  • Revision ID: robertc@robertcollins.net-20050927072440-1bf4d99c3e1db5b3
pair programming worx... merge integration and weave

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
import os
17
18
import sys
18
 
import os
19
19
 
20
20
import bzrlib.errors
21
21
from bzrlib.selftest.testrevision import make_branches
24
24
from bzrlib.fetch import greedy_fetch
25
25
 
26
26
from bzrlib.selftest import TestCaseInTempDir
27
 
        
 
27
 
28
28
 
29
29
def has_revision(branch, revision_id):
30
30
    try:
42
42
        
43
43
        def new_branch(name):
44
44
            os.mkdir(name)
45
 
            return Branch(name, init=True)
 
45
            return Branch.initialize(name)
46
46
            
47
47
        #highest indices a: 5, b: 7
48
48
        br_a, br_b = make_branches()