mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
98bb16cace
Summary: Teach mysql connector to deal with bytearray. Reviewed By: DurhamG, StanislavGlebik Differential Revision: D14025816 fbshipit-source-id: 738d9ef37b985afad5fe62815be134a4a5913b9a
32 lines
624 B
Perl
32 lines
624 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
|
|
(run 'hg update' to get a working copy)
|
|
|