sapling/eden/scm/tests/test-hgsql-hggit.t
Durham Goode 3588633bb7 py3: revert mysql-connector-python upgrade and hgsql tests
Summary:
The tests are broken on non-fbcode builds because
mysql-connector-python is the old version. We're unable to upgrade
mysql-connector-python on centos 7/8 because yummy is broken. This blocks us
from getting a release.

Let's roll back the mysql-connector-python upgrade for now, until yummy is
fixed.

Reviewed By: singhsrb

Differential Revision: D21162119

fbshipit-source-id: 5d0b266d72274540eca5b9a76bf151a0fbbee059
2020-04-21 13:45:23 -07:00

33 lines
600 B
Perl

#require py2
$ . "$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