comparison tests/test_externals.py @ 789:a5be5ca638de

externals: ignore externals blank or comment lines
author Patrick Mezard <pmezard@gmail.com>
date Wed, 02 Mar 2011 21:06:30 +0100
parents 40ddf8213fa2
children ba65c0b01d4f
comparison
equal deleted inserted replaced
788:836aa282f1f8 789:a5be5ca638de
79 79
80 ref0 = """[.] 80 ref0 = """[.]
81 ^/externals/project1 deps/project1 81 ^/externals/project1 deps/project1
82 """ 82 """
83 self.assertEqual(ref0, repo[0]['.hgsvnexternals'].data()) 83 self.assertEqual(ref0, repo[0]['.hgsvnexternals'].data())
84 ref1 = """[.] 84 ref1 = """\
85 ^/externals/project1 deps/project1 85 [.]
86 # A comment, then an empty line, then a blank line
87
88 ^/externals/project1 deps/project1
89
86 -r2 ^/externals/project2@2 deps/project2 90 -r2 ^/externals/project2@2 deps/project2
87 """ 91 """
88 self.assertEqual(ref1, repo[1]['.hgsvnexternals'].data()) 92 self.assertEqual(ref1, repo[1]['.hgsvnexternals'].data())
89 93
90 ref2 = """[.] 94 ref2 = """[.]