sapling/eden/scm/tests/test-hgsql-hggit.t
Durham Goode 74da65a38f py3: reupgrade mysql-connector-python to yummy version
Summary:
This is required for migrating to python 3. Originally this broke
builds on non-fbcode centos7 platforms. Since we don't need hgsql in non-fbcode
platforms, I've just tweaked it to skip the hgsql tests for non-fbcode centos7.

Reviewed By: quark-zju

Differential Revision: D22140187

fbshipit-source-id: 01676db9d006375bd3b5ae9e8f13f5592e36b074
2020-06-19 15:25:26 -07:00

32 lines
587 B
Perl

$ . "$RUNTESTDIR/hgsql/library.sh"
$ . "$RUNTESTDIR/hggit/testutil"
$ shorttraceback
$ enable lz4revlog
$ git init a-git
Initialized empty Git repository in $TESTTMP/a-git/.git/
$ cd a-git
Make "a" compressable
>>> _ = open("a", "w").write("0\n" * 5000)
$ git add a
$ git commit -m a
[master (root-commit) *] a (glob)
1 file changed, 5000 insertions(+)
create mode 100644 a
Setup an hgsql repo
$ cd $TESTTMP
$ initserver a-hg a-hg
$ cd a-hg
Pull from git
$ hg pull $TESTTMP/a-git
pulling from $TESTTMP/a-git
importing git objects into hg