Mercurial > hgsubversion
diff tests/test_fetch_symlinks.py @ 859:1d07e86f5797
stupid: handle changes in svn 1.7 diff format
Metadata changes are now represented like:
Property changes on: a
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
instead of:
Property changes on: a
___________________________________________________________________
Added: svn:executable
+ *
Also, I got tired of massaging the diff with regexps, so I extracted the
parsing logic in parsediff(). This is no small refactoring but it makes things
cleaner and the test suite pass on 1.6 and 1.7 so...
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Thu, 19 Apr 2012 14:59:50 +0200 |
parents | 312b37bc5e20 |
children | 04729f3a3d17 |
line wrap: on
line diff
--- a/tests/test_fetch_symlinks.py +++ b/tests/test_fetch_symlinks.py @@ -43,7 +43,9 @@ class TestFetchSymlinks(test_util.TestBa for rev in repo: ctx = repo[rev] for f in ctx.manifest(): - self.assertEqual(f in links[rev], 'l' in ctx[f].flags()) + l = 'l' in ctx[f].flags() + lref = f in links[rev] + self.assertEqual(lref, l, '%r != %r for %s@%r' % (lref, l, f, rev)) if f in links[rev]: self.assertEqual(links[rev][f], ctx[f].data()) for f in links[rev]: