mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
31 lines
531 B
Perl
31 lines
531 B
Perl
|
|
||
|
$ . "$RUNTESTDIR/hgsql/library.sh"
|
||
|
$ . "$RUNTESTDIR/hggit/testutil"
|
||
|
$ shorttraceback
|
||
|
$ enable lz4revlog
|
||
|
|
||
|
$ git init -q a-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
|
||
|
|