~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-28 05:25:54 UTC
  • mfrom: (1185.1.42)
  • mto: (1092.2.18)
  • mto: This revision was merged to the branch mainline in revision 1397.
  • Revision ID: robertc@robertcollins.net-20050928052554-beb985505f77ea6a
update symlink branch to integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# You should have received a copy of the GNU General Public License
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
 
 
17
import os
 
18
import sys
 
19
 
16
20
import bzrlib.errors
17
21
from bzrlib.selftest.testrevision import make_branches
18
22
from bzrlib.trace import mutter
19
23
from bzrlib.branch import Branch
20
 
import sys
21
 
import os
22
24
 
23
25
from bzrlib.selftest import TestCaseInTempDir
24
 
        
 
26
 
25
27
 
26
28
class TestFetch(TestCaseInTempDir):
27
29
    def runTest(self):
29
31
 
30
32
        def new_branch(name):
31
33
            os.mkdir(name)
32
 
            return Branch(name, init=True)
 
34
            return Branch.initialize(name)
33
35
            
34
36
        #highest indices a: 5, b: 7
35
37
        br_a, br_b = make_branches()