diff tests/test_externals.py @ 183:1c46ad3f56aa

test_externals: test branch copy, use absolute externals
author Patrick Mezard <pmezard@gmail.com>
date Wed, 14 Jan 2009 23:17:12 -0600
parents c4115b3918e9
children d3ea6c98a086
line wrap: on
line diff
--- a/tests/test_externals.py
+++ b/tests/test_externals.py
@@ -44,40 +44,48 @@ class TestFetchExternals(test_util.TestB
 
         ref0 = """\
 [.]
- ../externals/project1 deps/project1
+ ^/externals/project1 deps/project1
 """
         self.assertEqual(ref0, repo[0]['.hgsvnexternals'].data())
         ref1 = """\
 [.]
- ../externals/project1 deps/project1
- ../externals/project2 deps/project2
+ ^/externals/project1 deps/project1
+ ^/externals/project2 deps/project2
 """
         self.assertEqual(ref1, repo[1]['.hgsvnexternals'].data())
 
         ref2 = """\
 [.]
- ../externals/project2 deps/project2
+ ^/externals/project2 deps/project2
 [subdir]
- ../externals/project1 deps/project1
+ ^/externals/project1 deps/project1
 [subdir2]
- ../externals/project1 deps/project1
+ ^/externals/project1 deps/project1
 """
         self.assertEqual(ref2, repo[2]['.hgsvnexternals'].data())
 
         ref3 = """\
 [.]
- ../externals/project2 deps/project2
-[subdir2]
- ../externals/project1 deps/project1
+ ^/externals/project2 deps/project2
+[subdir]
+ ^/externals/project1 deps/project1
 """
         self.assertEqual(ref3, repo[3]['.hgsvnexternals'].data())
 
         ref4 = """\
 [.]
- ../externals/project2 deps/project2
+ ^/externals/project2 deps/project2
+[subdir2]
+ ^/externals/project1 deps/project1
 """
         self.assertEqual(ref4, repo[4]['.hgsvnexternals'].data())
 
+        ref5 = """\
+[.]
+ ^/externals/project2 deps/project2
+"""
+        self.assertEqual(ref5, repo[5]['.hgsvnexternals'].data())
+
     def test_externals_stupid(self):
         self.test_externals(True)