mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
74da65a38f
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
32 lines
587 B
Perl
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
|
|
|