comparison 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
comparison
equal deleted inserted replaced
858:bb6a013abaed 859:1d07e86f5797
41 } 41 }
42 42
43 for rev in repo: 43 for rev in repo:
44 ctx = repo[rev] 44 ctx = repo[rev]
45 for f in ctx.manifest(): 45 for f in ctx.manifest():
46 self.assertEqual(f in links[rev], 'l' in ctx[f].flags()) 46 l = 'l' in ctx[f].flags()
47 lref = f in links[rev]
48 self.assertEqual(lref, l, '%r != %r for %s@%r' % (lref, l, f, rev))
47 if f in links[rev]: 49 if f in links[rev]:
48 self.assertEqual(links[rev][f], ctx[f].data()) 50 self.assertEqual(links[rev][f], ctx[f].data())
49 for f in links[rev]: 51 for f in links[rev]:
50 self.assertTrue(f in ctx) 52 self.assertTrue(f in ctx)
51 53