Mercurial > hg
view tests/test-convert-svn-encoding @ 11548:dd2f356e1f6f
inotify: Better implementation of the event string representation.
This patch reimplements the event_repr function. It got mostly rewritten to
eliminate the need for conditional compilation of the module when building in
py3k. The trick there (thanks to Antoine Pitrou) is to use the % operator to
let the python interpreter format the string to be returned.
author | Renato Cunha <renatoc@gmail.com> |
---|---|
date | Fri, 02 Jul 2010 16:21:46 -0300 |
parents | 0332f8b44e54 |
children |
line wrap: on
line source
#!/bin/sh "$TESTDIR/hghave" svn svn-bindings || exit 80 echo "[extensions]" >> $HGRCPATH echo "convert = " >> $HGRCPATH svnadmin create svn-repo cat "$TESTDIR/svn/encoding.svndump" | svnadmin load svn-repo > /dev/null echo '% convert while testing all possible outputs' hg --debug convert svn-repo A-hg > /dev/null cd A-hg hg up echo '% check tags are in UTF-8' python -c "print '\n'.join([('%r' % l) for l in file('.hgtags', 'rb').readlines()])" cd ..